我有一个非常基本的app.yaml文件,其中包含以下内容:
runtime: nodejs env: flex service: front
每次部署应用程序时,部署都需要很长时间:
Updating service [front] (this may take several minutes)...
当我签入控制台时,我可以看到它从1个实例上升到2个实例,即使我没有指定任何关于实例数量的内容。谷歌为什么要这么做?在不禁用自动缩放功能的情况下,如何设置实例的起始数量?事先谢谢!
here
runtime: nodejs env: flex service: front automatic_scaling: min_num_instances: 1 // Default is 2. Must be 1 or greater max_num_instances: 10 // Default is 20.