- CircuitBreaker (faulttolerance) Configuration
Type: io.helidon.faulttolerance.CircuitBreaker
This is a standalone configuration type, prefix from configuration root:
fault-tolerance.circuit-breakers
Configuration options
Optional configuration options
| key | type | default value | description |
|---|---|---|---|
delay | Duration | PT5S | How long to wait before transitioning from open to half-open state. @return delay |
error-ratio | int | 60 | How many failures out of 100 will trigger the circuit to open. This is adapted to the #volume() used to handle the window of requests. If errorRatio is 40, and volume is 10, 4 failed requests will open the circuit. Default is @return percent of failure that trigger the circuit to open @see #volume() |
success-threshold | int | 1 | How many successful calls will close a half-open circuit. Nevertheless, the first failed call will open the circuit again. Default is @return number of calls |
volume | int | 10 | Rolling window size used to calculate ratio of failed requests. Default is @return how big a window is used to calculate error errorRatio @see #errorRatio() |