A com.twitter.finagle.ServiceFactory that accrues failures, marking
itself unavailable when deemed unhealthy according to the configured policy
.
A FailureAccrualPolicy
is used by FailureAccrualFactory
to determine
whether to mark an endpoint dead upon a request failure.
A FailureAccrualPolicy
is used by FailureAccrualFactory
to determine
whether to mark an endpoint dead upon a request failure. On each successful
response, FailureAccrualFactory
calls recordSuccess()
. On each failure,
FailureAccrualFactory
calls markDeadOnFailure()
to obtain the duration
to mark the endpoint dead for; (Some(Duration)), or None.
The user guide for more details.
Companion object capable of creating a FailureDetector based on parameterized config.
GlobalFlag to configure FailureDetection used only in the absence of any app-specified config.
GlobalFlag to configure FailureDetection used only in the absence of any app-specified config. This is the default behavior.
Value of: "none": turn off threshold failure detector "threshold:minPeriod:closeTimeout": use the specified configuration for failure detection
A com.twitter.finagle.ServiceFactory that accrues failures, marking itself unavailable when deemed unhealthy according to the configured
policy
.This acts as a request driven circuit breaker.
Note this module fails open – that is, even if it transitions into a closed state, requests will still be allowed to flow through it. Although, when used in a typical Finagle client, there is one instance of this module per node and as such, the load balancer will avoid nodes where the status is not open.
The user guide for more details.