【问题标题】:Google Cloud App Engine Flexbile quota errorGoogle Cloud App Engine 灵活配额错误
【发布时间】:2021-01-11 08:16:37
【问题描述】:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: The following quotas were exceeded: CPUS (quota: 
0, used: 0 + needed: 4).

尝试使用 gcloud 在新的谷歌云项目中的 App Engine 灵活环境中部署 nodejs 应用程序。

runtime: nodejs
env: flex
resources:
  cpu: 2
  memory_gb: 3.5
  disk_size_gb: 20
network:
  name: default
env_variables:
  NODE_ENV: production

由于某种原因,我无法在应用引擎柔性环境中成功部署。

【问题讨论】:

  • 您的 App Engine 所在的区域是什么?
  • asia-south1 是我的应用引擎 locationId @JohnMichaelG

标签: google-app-engine google-cloud-platform quota app-engine-flexible


【解决方案1】:

如果您正在免费试用,这是一个已知问题或该地区(亚洲-南部)的缺货问题。以下是我的建议:

  1. 尝试将其添加到 app.yaml 并部署:
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 7
  1. 在 App Engine Standard 上运行或部署。
  2. 更改 App Engine 的区域。请注意,您无法更改 App Engine 区域,您需要创建一个新项目并设置其他区域 except asia-south
  3. 在不同的product 上运行或部署应用程序。
  4. Google Cloud 现在提供了一项称为预订的功能,可以保证 Google Cloud 的容量,有关如何使用此功能的详细信息,请参阅document
  5. 为 CPU 创建配额请求。

【讨论】:

  • 我可以在应用引擎标准中部署。
猜你喜欢
  • 2019-09-20
  • 1970-01-01
  • 2017-04-11
  • 2018-12-25
  • 1970-01-01
  • 1970-01-01
  • 2017-03-30
  • 2021-06-23
  • 1970-01-01
相关资源
最近更新 更多