如何为云 运行 服务创建断路器?

How to create circuit breaker for cloud run services?

我想了解我们如何为云 运行 服务创建断路器,与在 GKE 中不同,我们使用的是 istio 类服务网格,我们如何实现相同的东西云 运行 ?

在 GKE 上,您会 set up a circuit breaker 防止旧后端系统因请求激增而过载。

要在 Cloud 运行 或 Cloud Functions 上完成相同的操作,您可以设置 maximum number of instances。来自该文档:

Specifying maximum instances in Cloud Run allows you to limit the scaling of your service in response to incoming requests, although this maximum setting can be exceeded for a brief period due to circumstances such as traffic spikes. Use this setting as a way to control your costs or to limit the number of connections to a backing service, such as to a database.