当命令“gcloud preview app deploy app.yaml --promote”时出现错误:
错误:(gcloud.preview.app.deploy)错误响应:[13] CPU Quota Exceeded:正在使用:7,请求:2,限制:8 版本:20151201t142343.388948918338383472
有什么办法可以解决这种情况吗?
当命令“gcloud preview app deploy app.yaml --promote”时出现错误:
错误:(gcloud.preview.app.deploy)错误响应:[13] CPU Quota Exceeded:正在使用:7,请求:2,限制:8 版本:20151201t142343.388948918338383472
有什么办法可以解决这种情况吗?
因为我也遇到了这个,有点困惑:
似乎您为例如 node.js 项目所做的每次部署都会创建一个新的计算引擎 CPU。如果您进入项目的gcloud 仪表板,您可以看到计算引擎实例的数量- 删除旧的,您可以再次部署。
刚刚经历了一个意外的停机时间.. 运行 appengine flex 环境和一个使用最少资源(带宽、磁盘、内存、qps)的流星应用程序..
我想我必须导航到位于https://console.cloud.google.com/iam-admin/quotas?project=的配额部分your-project-id
并提交对已自动设置为空值的资源的请求。感谢谷歌的提醒。我相信 SLA 会让我任凭他们的心血来潮摆布。
但对其他人来说,希望这能更好地说明遇到以下情况时该怎么做:
DEBUG: HttpError accessing <https://appengine.googleapis.com/v1/apps/<project-id>/services/default/versions?alt=json>: response: <{'status': '400', 'content-length': '217', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer', 'server': 'ESF', '-content-encoding': 'gzip', 'cache-control': 'private', 'date': 'Wed, 25 Oct 2017 04:42:45 GMT', 'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'quic=":443"; ma=2592000; v="39,38,37,35"', 'content-type': 'application/json; charset=UTF-8'}>, content <{
"error": {
"code": 400,
"message": "The following quotas were exceeded: DISKS_TOTAL_GB (quota: 0, used: 10 + needed: 0), INSTANCES (quota: 0, used: 1 + needed: 0).",
"status": "INVALID_ARGUMENT"
}
}
>
DEBUG: (gcloud.app.deploy) Error Response: [400] The following quotas were exceeded: DISKS_TOTAL_GB (quota: 0, used: 10 + needed: 0), INSTANCES (quota: 0, used: 1 + needed: 0).
https://appengine.googleapis.com/v1/apps/<project-id>/services/default/versions?alt=json
Traceback (most recent call last):
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 789, in Execute
resources = args.calliope_command.Run(cli=self, args=args)
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 754, in Run
resources = command_instance.Run(args)
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/surface/app/deploy.py", line 62, in Run
use_service_management=use_service_management)
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 624, in RunDeploy
flex_image_build_option=flex_image_build_option)
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 418, in Deploy
endpoints_info)
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 162, in DeployService
self.client.apps_services_versions.Create, create_request)
File "~/.pyenv/versions/2.7.11/envs/env-2.7.11/lib/python2.7/site-packages/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/requests.py", line 71, in MakeRequest
raise exc
HttpException: Error Response: [400] The following quotas were exceeded: DISKS_TOTAL_GB (quota: 0, used: 10 + needed: 0), INSTANCES (quota: 0, used: 1 + needed: 0).
https://appengine.googleapis.com/v1/apps/<project-id>/services/default/versions?alt=json
ERROR: (gcloud.app.deploy) Error Response: [400] The following quotas were exceeded: DISKS_TOTAL_GB (quota: 0, used: 10 + needed: 0), INSTANCES (quota: 0, used: 1 + needed: 0).
https://appengine.googleapis.com/v1/apps/<project-id>/services/default/versions?alt=json
通过 http 访问该站点时会出现非常友好的错误消息:
Error: Server Error
The server encountered a temporary error and could not complete your
request.
Please try again in 30 seconds.