Home > Back-end >  How to create circuit breaker for cloud run services?
How to create circuit breaker for cloud run services?

Time:01-31

I am trying to understand how we can create circuit breakers for cloud run services,Unlike in GKE we are using istio kind of service mesh how we implement same thing cloud Run ?

CodePudding user response:

On GKE you'd set up a circuit breaker to prevent overloading your legacy backend systems from a surge in requests.

To accomplish the same on Cloud Run or Cloud Functions, you can set a maximum number of instances. From that documentation:

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.

  •  Tags:  
  • Related