Google cloud platform 如何在谷歌云管理的虚拟机中设置自动缩放
我们计划在谷歌云管理的虚拟机上部署我们的应用程序。我尝试使用自动缩放。我已根据此文档更改了以下参数 这是我们的app.yaml文件设置Google cloud platform 如何在谷歌云管理的虚拟机中设置自动缩放,google-cloud-platform,google-managed-vm,Google Cloud Platform,Google Managed Vm,我们计划在谷歌云管理的虚拟机上部署我们的应用程序。我尝试使用自动缩放。我已根据此文档更改了以下参数 这是我们的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_pendi
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中设置最大、最小空闲实例数、延迟以及如何设置版本号对不起!这是一个文档错误(我们正在修复它)。默认情况下,您的模块上实际上启用了自动缩放功能—您根本不需要添加任何配置即可使用它。托管虚拟机不支持min_idle_实例和min_pending_延迟字段。在大多数情况下,您根本不需要在此处添加任何配置来进行自动缩放,它应该“正常工作” 谢谢你的澄清。你救了我一天。但至少我们应该控制max_idle_实例,我们可以启用它吗。一年多之后,这个“文档错误”仍然存在。此外,当我尝试报告时,有人告诉我需要注册premium support package。它应该“正常工作”,但从2个实例开始计算。。为什么?Flex可以运行任何你喜欢的节点版本!你可以用你的应用程序创建一个
Dockerfile
,并设置runtime:custom
(我想…)。