Object/Class

com.twitter.finagle.liveness

FailureAccrualPolicy

Related Docs: class FailureAccrualPolicy | package liveness

Permalink

object FailureAccrualPolicy

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FailureAccrualPolicy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DefaultConsecutiveFailures: Int

    Permalink
  5. val DefaultMinimumRequestThreshold: Int

    Permalink
  6. val DefaultSuccessRateThreshold: Double

    Permalink
  7. val DefaultSuccessRateWindow: Duration

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def consecutiveFailures(numFailures: Int, markDeadFor: Stream[Duration]): FailureAccrualPolicy

    Permalink

    A policy based on a maximum number of consecutive failures.

    A policy based on a maximum number of consecutive failures. If numFailures occur consecutively, checkFailures() will return a Some(Duration) to mark an endpoint dead for.

    numFailures

    number of consecutive failures

    markDeadFor

    stream of durations to use for the next duration returned from markDeadOnFailure()

  11. val constantBackoff: Stream[Duration]

    Permalink
    Attributes
    protected[this]
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def successRate(requiredSuccessRate: Double, window: Int, markDeadFor: Stream[Duration]): FailureAccrualPolicy

    Permalink

    Returns a policy based on an exponentially-weighted moving average success rate over a window of requests.

    Returns a policy based on an exponentially-weighted moving average success rate over a window of requests. A moving average is used so the success rate calculation is biased towards more recent requests; for an endpoint with low traffic, the window will span a longer time period and early successes and failures may not accurately reflect the current health.

    If the computed weighted success rate is less than the required success rate, markDeadOnFailure() will return Some(Duration).

    requiredSuccessRate

    successRate that must be met

    window

    window over which the success rate is tracked. window requests must occur for markDeadOnFailure() to ever return Some(Duration)

    markDeadFor

    stream of durations to use for the next duration returned from markDeadOnFailure()

    See also

    com.twitter.finagle.util.Ema for how the success rate is computed

  22. def successRateWithinDuration(requiredSuccessRate: Double, window: Duration, markDeadFor: Stream[Duration]): FailureAccrualPolicy

    Permalink

    Returns a policy based on an exponentially-weighted moving average success rate over a time window.

    Returns a policy based on an exponentially-weighted moving average success rate over a time window. A moving average is used so the success rate calculation is biased towards more recent requests.

    If the computed weighted success rate is less than the required success rate, markDeadOnFailure() will return Some(Duration).

    requiredSuccessRate

    successRate that must be met

    window

    window over which the success rate is tracked. markDeadOnFailure() will return None, until we get requests for a duration of at least window.

    markDeadFor

    stream of durations to use for the next duration returned from markDeadOnFailure()

    See also

    com.twitter.finagle.util.Ema for how the success rate is computed

  23. def successRateWithinDuration(requiredSuccessRate: Double, window: Duration, markDeadFor: Stream[Duration], minRequestThreshold: Int): FailureAccrualPolicy

    Permalink

    Returns a policy based on an exponentially-weighted moving average success rate over a time window.

    Returns a policy based on an exponentially-weighted moving average success rate over a time window. A moving average is used so the success rate calculation is biased towards more recent requests.

    If the computed weighted success rate is less than the required success rate, markDeadOnFailure() will return Some(Duration).

    requiredSuccessRate

    successRate that must be met

    window

    window over which the success rate is tracked. markDeadOnFailure() will return None, until we get requests for a duration of at least window.

    markDeadFor

    stream of durations to use for the next duration returned from markDeadOnFailure()

    minRequestThreshold

    minimum number of requests in the past window for markDeadOnFailure() to return a duration

    See also

    com.twitter.finagle.util.Ema for how the success rate is computed

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped