CircuitBreakerPolicy interface
Policy that defines circuit breaker conditions
Properties
| consecutive |
Number of consecutive errors before the circuit breaker opens |
| interval |
The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s. |
| max |
Maximum percentage of hosts that will be ejected after failure threshold has been met |
Property Details
consecutiveErrors
Number of consecutive errors before the circuit breaker opens
consecutiveErrors?: number
Property Value
number
intervalInSeconds
The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s.
intervalInSeconds?: number
Property Value
number
maxEjectionPercent
Maximum percentage of hosts that will be ejected after failure threshold has been met
maxEjectionPercent?: number
Property Value
number