是什么原因导致此GCP GAE [RESOURCE_EXHAUSTED]配额错误? [英] What is causing this GCP GAE [RESOURCE_EXHAUSTED] quota error?

查看:71
本文介绍了是什么原因导致此GCP GAE [RESOURCE_EXHAUSTED]配额错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署到GCP App Engine(灵活)时,出现了我似乎无法理解的 [RESOURCE_EXHAUSTED] 错误.

When deploying to GCP App Engine (Flexible) I'm getting a [RESOURCE_EXHAUSTED] error that I can't seem to make sense of.

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 配置有关吗?

Could this be related to my app.yaml configuration?

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

如果没有,那又有什么关系呢?

If not, then what could it be related to?

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

Checking the quotas page shows that all quotas seem to be within limits.

推荐答案

按照GCP doc 参数"max_num_instances",默认情况下,您可以看到15个项目中的实例的最大数目为8.我建议您增加<为您的项目设置href ="https://cloud.google.com/compute/quotas#requesting_additional_quota" rel ="nofollow noreferrer"> quota 限制将解决此问题.

As per the GCP doc the parameter 'max_num_instances', The maximum number of instances in your project should be 8 by default where I can see you are using 15. I would like to suggest you to increase the quota limit for your project will solve the issue.

这篇关于是什么原因导致此GCP GAE [RESOURCE_EXHAUSTED]配额错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆