This is a standalone configuration type, prefix from configuration root: fault-tolerance.circuit-breakers

Configuration options

Table 1. Optional 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 true, then metrics will be enabled for the instance.

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 DEFAULT_ERROR_RATIO.

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 DEFAULT_SUCCESS_THRESHOLD.

volume

int

10

Rolling window size used to calculate ratio of failed requests. Default is DEFAULT_VOLUME.

See errorRatio()