Package

com.twitter.finagle

liveness

Permalink

package liveness

Visibility
  1. Public
  2. All

Type Members

  1. class FailureAccrualFactory[Req, Rep] extends ServiceFactory[Req, Rep]

    Permalink

    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.

  2. abstract class FailureAccrualPolicy extends AnyRef

    Permalink

    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.

    See also

    The user guide for more details.

  3. final class FailureDetectors extends AnyRef

    Permalink

Value Members

  1. object FailureAccrualFactory

    Permalink
  2. object FailureAccrualPolicy

    Permalink
  3. object FailureDetector

    Permalink

    Companion object capable of creating a FailureDetector based on parameterized config.

  4. object sessionFailureDetector extends GlobalFlag[String]

    Permalink

    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

Ungrouped