Google Cloud App Engine 灵活配额错误

Google Cloud App Engine Flexbile quota error

ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: The following quotas were exceeded: CPUS (quota: 
0, used: 0 + needed: 4).

尝试在 App Engine 灵活环境中使用 gcloud 在新的 google 云项目中部署 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 柔性环境中成功部署。

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

  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 云容量,请参阅此 document 了解有关如何使用此功能的详细信息。
  5. 为 CPU 创建配额请求。