错误:请求的实例数量已超过 GCE 的默认配额

问题描述

我决定使用 App Engine 柔性版。但我收到此错误

The requested amount of instances has exceeded GCE's default quota. Please see https://cloud.google.com/compute/quotas for more @R_504_4045@ion on GCE resources

我有一个结算帐户,并且有 300 美元的信用额度。

我的 app.yaml

runtime: nodejs
service: server
env: flex

network:
  session_affinity: true

handlers:
  - url: /.*
    secure: always
    redirect_http_response_code: 301
    script: auto

我一整天都在想办法解决这个问题:( 有人明白为什么会这样吗?

解决方法

正如@mahboob 所建议的,这个问题的答案是在这个question

根据 GCP doc 参数“max_num_instances”,默认情况下,您项目中的最大实例数应为 8,我可以看到您使用的是 15。我建议您增加 {您的项目的 {3}} 限制将解决问题。