【发布时间】:2021-06-25 09:10:29
【问题描述】:
我正在 App Engine 标准环境中部署 node.js 后端应用
app.yaml 文件如下所示:
runtime: nodejs12
env_variables:
NODE_ENV: 'production'
automatic_scaling:
min_num_instances: 1
max_num_instances: 100
cpu_utilization:
target_utilization: 0.9
但在部署时它说
RROR: (gcloud.app.deploy) INVALID_ARGUMENT: Frontend automatic scaling should NOT have the following parameter(s): [max_total_instances, min_total_instances, cpu_utilization.target_utilization] (or "version.env" should be set to "flex"
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: 'Frontend automatic scaling should NOT have the following parameter(s):
[max_total_instances, min_total_instances, cpu_utilization.target_utilization]
(or "version.env" should be set to "flex"'
field: version.automatic_scaling
就官方文档而言,如果实例至少为 F1(它是),则自动缩放部分应该在标准上工作,所以我不明白为什么它告诉我应该将环境设置为 flex我在网上找不到关于这个问题的任何信息
【问题讨论】: