circuit breaker: track remaining resource count (#6269)

This commit adds cluster stats tracking the resources remaining
until a circuit breaker opens.

Signed-off-by: Spencer Lewis <slewis@squareup.com>

Mirrored from https://github.com/envoyproxy/envoy @ 0cd4054747440e019a5acc62f33f0a3b5db4975f
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent 4699c368cd
commit c683d4c59d
  1. 5
      envoy/api/v2/cluster/circuit_breaker.proto

@ -46,6 +46,11 @@ message CircuitBreakers {
// The maximum number of parallel retries that Envoy will allow to the // The maximum number of parallel retries that Envoy will allow to the
// upstream cluster. If not specified, the default is 3. // upstream cluster. If not specified, the default is 3.
google.protobuf.UInt32Value max_retries = 5; google.protobuf.UInt32Value max_retries = 5;
// If track_remaining is true, then stats will be published that expose
// the number of resources remaining until the circuit breakers open. If
// not specified, the default is false.
bool track_remaining = 6;
} }
// If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>` // If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`

Loading…
Cancel
Save