2015-12-01 63 views
8

我得到一個錯誤,當命令 「gcloud預覽應用程序部署的app.yaml --promote」 :谷歌應用程序引擎:配額錯誤

錯誤:(gcloud.preview.app.deploy)錯誤響應:13 ]超出CPU配額:使用中:7,請求:2,限制:8版本:20151201t142343.388948918338383472

有沒有什麼可以解決這種情況?

+0

你還在免費試用嗎?因爲如果你不是,你只需要申請更多的配額。只需進入您的Google Compute Engine配額頁面,應該有一個「請求額外配額」按鈕,它會將您轉到表單:)。乾杯! – Patrice

回答

8

因爲我只是碰到了這個過了,有點猛然一驚:

似乎每次部署您做例如node.js項目創建了一個新的計算引擎CPU。如果你進入你的項目的gcloud dashboard,你可以看到compute engine instances的數量 - 刪除舊的,你可以再次部署。

+1

因此,問題就變成了,爲什麼Google不會在您進行新的部署時自動刪除舊實例? –

+0

應用程序是否有重用計算引擎的方法?令人討厭的是,部署過程的一部分意味着去儀表板減少每次部署後創建的實例。在部署鉤子中完成此任務的任何示例? –

+3

@Groxx它說我有8個實例,但是當我點擊計算引擎實例時,我沒有看到一個列表。我看到一個彈出窗口,顯示「創建實例」 –

1

剛剛過去的意外停機時間與這個..就以最小的資源使用(帶寬,磁盤,內存,QPS)流星應用程序運行的AppEngine Flex環境..

我想我有導航到一個配額部分位於https://console.cloud.google.com/iam-admin/quotas?project=your-project-id

這裏就是我的「請求」時,看起來爲例提交,如: google cloud console quota increase request

已經自動設置爲null值..多謝頭,並提交資源請求谷歌上漲了。我相信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. 
相關問題