超过 App Engine 最大实例数

Exceeding App Engine Max Number of Instances

我正在尝试设置具有大量实例的 App Engine。当我尝试在基本或手动缩放和部署时设置数字时,出现以下错误:

ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: version.manual_scaling.instances (50.0) must be in the range [1.0, 25.0].
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: version.manual_scaling.instances (50.0) must be in the range [1.0,
      25.0].
    field: version.manual_scaling.instances

我认为我可以在基本或手动缩放中设置非常多的实例,所以我不确定为什么我得到的范围只有 1 到 25?我需要在 GCloud 上配置一些额外的设置以启用更高的实例数吗?

设置大量的 App Engine 实例将取决于您的 Google 云项目资源实例 quota. Based on the error, you are only applicable for 1 to 25 instances running in your App Engine. If you want to increase your quota limit, you can file a quota request by following the steps in this link

@NoCommandLine 的评论是正确的,如果您希望 App Engine 处理您的实例,请使用 automatic scaling注意,自动缩放也将取决于您的项目实例配额,但它会最小化您的成本而不是基本缩放或手动缩放。