【问题标题】:What is causing this GCP GAE [RESOURCE_EXHAUSTED] quota error?是什么导致此 GCP GAE [RESOURCE_EXHAUSTED] 配额错误?
【发布时间】:2020-12-27 22:42:19
【问题描述】:

在部署到 GCP App Engine (Flexible) 时,我收到了 [RESOURCE_EXHAUSTED] 错误,我似乎无法理解。

The requested amount of instances has exceeded GCE's default quota.

完全错误:

ERROR: (gcloud.app.deploy) Error Response: [8] Flex operation projects/project/regions/europe-west3/operations/8824354e-eaaf-45a6-9760-47167218e043 error [RESOURCE_EXHAUSTED]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2020-12-27T11:41:01.342Z18480.xj.2: The requested amount of instances has exceeded GCE's default quota. Please see https://cloud.google.com/compute/quotas for more information on GCE resources

这可能与我的app.yaml 配置有关吗?

runtime: custom
env: flex
resources:
  cpu: 2
  memory_gb: 1.4
  disk_size_gb: 10
network:
  name: default
liveness_check:
  path: "/liveness_check"
  check_interval_sec: 30
  timeout_sec: 4
  failure_threshold: 2
  success_threshold: 2
  initial_delay_sec: 300
readiness_check:
  path: "/readiness_check"
  check_interval_sec: 5
  timeout_sec: 4
  failure_threshold: 2
  success_threshold: 2
  app_start_timeout_sec: 300
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 15
  cool_down_period_sec: 180
  cpu_utilization:
    target_utilization: 0.5
  target_concurrent_requests: 100

如果不是,那可能与什么有关?

检查quotas 页面显示所有配额似乎都在限制范围内。

【问题讨论】:

  • 我尝试使用 memory_gb: 4 重新部署,我得到了同样的错误

标签: google-cloud-platform gae-quotas


【解决方案1】:

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

【讨论】:

  • 这是有道理的。太感谢了。相反,我将max_num_instances 降低到8 以匹配默认配额限制。现在检查是否能解决问题
  • 是的,就是这样!非常感谢
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多