This is a standalone configuration type, prefix from configuration root: fault-tolerance.circuit-breakers
Configuration options
| key | type | default value | description |
|---|---|---|---|
|
Duration |
|
How long to wait before transitioning from open to half-open state. |
|
boolean |
|
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 |
|
int |
|
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 DEFAULT_ERROR_RATIO. See volume() |
|
int |
|
How many successful calls will close a half-open circuit. Nevertheless, the first failed call will open the circuit again. Default is DEFAULT_SUCCESS_THRESHOLD. |
|
int |
|
Rolling window size used to calculate ratio of failed requests. Default is DEFAULT_VOLUME. See errorRatio() |