package liveness
- Alphabetic
- Public
- Protected
Type Members
- class FailureAccrualFactory[Req, Rep] extends ServiceFactory[Req, Rep]
A com.twitter.finagle.ServiceFactory that accrues failures, marking itself unavailable when deemed unhealthy according to the configured
policy
.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.
- See also
The user guide for more details.
- abstract class FailureAccrualPolicy extends AnyRef
A
FailureAccrualPolicy
is used byFailureAccrualFactory
to determine whether to mark an endpoint dead upon a request failure.A
FailureAccrualPolicy
is used byFailureAccrualFactory
to determine whether to mark an endpoint dead upon a request failure. On each successful response,FailureAccrualFactory
callsrecordSuccess()
. On each failure,FailureAccrualFactory
callsmarkDeadOnFailure()
to obtain the duration to mark the endpoint dead for; (Some(Duration)), or None.- See also
The user guide for more details.
- final class FailureDetectors extends AnyRef
A Java adaptation of the
com.twitter.finagle.liveness.FailureDetector
companion object.
Value Members
- object FailureAccrualFactory
- object FailureAccrualPolicy
- object FailureDetector
Companion object capable of creating a FailureDetector based on parameterized config.
- object sessionFailureDetector extends GlobalFlag[String]
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