A com.twitter.finagle.ServiceFactory that accrues failures, marking itself unavailable when deemed unhealthy according to its configuration.
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:threshold:win:closeTimeout": use the specified configuration for failure detection
A com.twitter.finagle.ServiceFactory that accrues failures, marking itself unavailable when deemed unhealthy according to its configuration.
This acts as a request driven circuit breaker.
When used in a typical Finagle client, there is one instance per node and as such, the load balancer will avoid nodes that are marked down via failure accrual.
The user guide for more details.