- CircuitBreaker (faulttolerance) Configuration
Type: io.helidon.faulttolerance.CircuitBreaker
This is a standalone configuration type, prefix from configuration root:
fault-tolerance.circuit-breakers
Configuration options
| key | type | default value | description |
|---|---|---|---|
delay | Duration | PT5S | How long to wait before transitioning from open to half-open state. |
enable-metrics | boolean | false | Flag to enable metrics for this instance. The value of this flag is combined with the global config entry io.helidon.faulttolerance.FaultTolerance.FT_METRICS_DEFAULT_ENABLED. If either of these flags is |
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 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 |
volume | int | 10 | Rolling window size used to calculate ratio of failed requests. Default is See errorRatio() |