我们计划在谷歌云管理的虚拟机上部署我们的应用程序。我尝试使用自动缩放。我已根据此文档更改了以下参数
https://cloud.google.com/appengine/docs/managed-vms/java/configuring-your-app-with-app-yaml
这是我们的 app.yaml 文件设置
runtime: java
vm: true
threadsafe: true
automatic_scaling:
min_idle_instances: 1
max_idle_instances: 5 # default value
min_pending_latency: 30ms # default value
max_pending_latency: 1000
max_concurrent_requests: 50
handlers:
- url: /.*
script: this field is required, but ignored
secure: always
但是当我尝试部署时,我们收到以下错误
"description": "VM-based automatic scaling should NOT have the following parameter(s): [min_idle_instances, min_pending_latency,max_idle_instances,max_pending_latency ]",
"field": "version.automatic_scaling"
如何设置最大、最小空闲实例数、延迟以及如何在 app.yaml 中设置版本号