最小实例 Google 云 运行

Min Instance Google Cloud Run

如果我将 minimum instance 设置为 1、4、10 会怎么样?最小实例 1、4 和 10 之间有什么区别? 我对这个很好奇,因为当我对它进行压力测试时。我没看出这有什么区别?

是否只在第一次HTTP请求时生效?

这似乎在documentation中解释得很好:

By default, Cloud Run scales in to the number of instances based on the number of incoming requests. However, if your service requires reduced latency and you want to limit the number of cold starts, you can change this default behavior by specifying a minimum number of container instances to be kept warm and ready to serve requests.

因此,这对于在创建新实例时避免冷启动很重要。压力测试中测试的最大性能应该在同一水平。