CircuitBreaker (faulttolerance) Configuration

Type: io.helidon.faulttolerance.CircuitBreaker

Configuration options

Optional configuration options
keytypedefault valuedescription
cancel-source

boolean

true

Policy to cancel any source stage if the value return by CircuitBreaker#invoke is cancelled. Default is true; mostly used by FT MP to change default.

delay

Duration

PT5S

How long to wait before transitioning from open to half-open state.

error-ratio

int

60

How many failures out of 100 will trigger the circuit to open. This is adapted to the #volume(int) used to handle the window of requests. If errorRatio is 40, and volume is 10, 4 failed requests will open the circuit.

name

string

CircuitBreaker-

A name assigned for debugging, error reporting or configuration purposes.

success-threshold

int

1

How many successful calls will close a half-open circuit. Nevertheless the first failed call will open the circuit again.

volume

int

10

Rolling window size used to calculate ratio of failed requests.