akka.remote

PhiAccrualFailureDetector

class PhiAccrualFailureDetector extends FailureDetector

Implementation of 'The Phi Accrual Failure Detector' by Hayashibara et al. as defined in their paper: [http://ddg.jaist.ac.jp/pub/HDY+04.pdf]

The suspicion level of failure is given by a value called φ (phi). The basic idea of the φ failure detector is to express the value of φ on a scale that is dynamically adjusted to reflect current network conditions. A configurable threshold is used to decide if φ is considered to be a failure.

The value of φ is calculated as:

? = -log10(1 - F(timeSinceLastHeartbeat)

where F is the cumulative distribution function of a normal distribution with mean and standard deviation estimated from historical heartbeat inter-arrival times.

Source
PhiAccrualFailureDetector.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PhiAccrualFailureDetector
  2. FailureDetector
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PhiAccrualFailureDetector(config: Config, ev: EventStream)

    Constructor that reads parameters from config.

    Constructor that reads parameters from config. Expecting config properties named threshold, max-sample-size, min-std-deviation, acceptable-heartbeat-pause and heartbeat-interval.

  2. new PhiAccrualFailureDetector(threshold: Double, maxSampleSize: Int, minStdDeviation: FiniteDuration, acceptableHeartbeatPause: FiniteDuration, firstHeartbeatEstimate: FiniteDuration)(implicit clock: Clock)

    threshold

    A low threshold is prone to generate many wrong suspicions but ensures a quick detection in the event of a real crash. Conversely, a high threshold generates fewer mistakes but needs more time to detect actual crashes

    maxSampleSize

    Number of samples to use for calculation of mean and standard deviation of inter-arrival times.

    minStdDeviation

    Minimum standard deviation to use for the normal distribution used when calculating phi. Too low standard deviation might result in too much sensitivity for sudden, but normal, deviations in heartbeat inter arrival times.

    acceptableHeartbeatPause

    Duration corresponding to number of potentially lost/delayed heartbeats that will be accepted before considering it to be an anomaly. This margin is important to be able to survive sudden, occasional, pauses in heartbeat arrivals, due to for example garbage collect or network drop.

    firstHeartbeatEstimate

    Bootstrap the stats with heartbeats that corresponds to to this duration, with a with rather high standard deviation (since environment is unknown in the beginning)

    clock

    The clock, returning current time in milliseconds, but can be faked for testing purposes. It is only used for measuring intervals (duration).

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (PhiAccrualFailureDetector, B)

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to ArrowAssoc[PhiAccrualFailureDetector] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. val acceptableHeartbeatPause: FiniteDuration

    Duration corresponding to number of potentially lost/delayed heartbeats that will be accepted before considering it to be an anomaly.

    Duration corresponding to number of potentially lost/delayed heartbeats that will be accepted before considering it to be an anomaly. This margin is important to be able to survive sudden, occasional, pauses in heartbeat arrivals, due to for example garbage collect or network drop.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (PhiAccrualFailureDetector) ⇒ Boolean, msg: ⇒ Any): PhiAccrualFailureDetector

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to Ensuring[PhiAccrualFailureDetector] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (PhiAccrualFailureDetector) ⇒ Boolean): PhiAccrualFailureDetector

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to Ensuring[PhiAccrualFailureDetector] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): PhiAccrualFailureDetector

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to Ensuring[PhiAccrualFailureDetector] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): PhiAccrualFailureDetector

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to Ensuring[PhiAccrualFailureDetector] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. val firstHeartbeatEstimate: FiniteDuration

    Bootstrap the stats with heartbeats that corresponds to to this duration, with a with rather high standard deviation (since environment is unknown in the beginning)

  19. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  22. final def heartbeat(): Unit

    Notifies the FailureDetector that a heartbeat arrived from the monitored resource.

    Notifies the FailureDetector that a heartbeat arrived from the monitored resource. This causes the FailureDetector to update its state.

    Definition Classes
    PhiAccrualFailureDetectorFailureDetector
    Annotations
    @tailrec()
  23. def isAvailable: Boolean

    Returns true if the resource is considered to be up and healthy and returns false otherwise.

    Returns true if the resource is considered to be up and healthy and returns false otherwise.

    Definition Classes
    PhiAccrualFailureDetectorFailureDetector
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isMonitoring: Boolean

    Returns true if the failure detector has received any heartbeats and started monitoring of the resource.

    Returns true if the failure detector has received any heartbeats and started monitoring of the resource.

    Definition Classes
    PhiAccrualFailureDetectorFailureDetector
  26. val maxSampleSize: Int

    Number of samples to use for calculation of mean and standard deviation of inter-arrival times.

  27. val minStdDeviation: FiniteDuration

    Minimum standard deviation to use for the normal distribution used when calculating phi.

    Minimum standard deviation to use for the normal distribution used when calculating phi. Too low standard deviation might result in too much sensitivity for sudden, but normal, deviations in heartbeat inter arrival times.

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def phi: Double

    The suspicion level of the accrual failure detector.

    The suspicion level of the accrual failure detector.

    If a connection does not have any records in failure detector then it is considered healthy.

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

    Definition Classes
    AnyRef
  33. val threshold: Double

    A low threshold is prone to generate many wrong suspicions but ensures a quick detection in the event of a real crash.

    A low threshold is prone to generate many wrong suspicions but ensures a quick detection in the event of a real crash. Conversely, a high threshold generates fewer mistakes but needs more time to detect actual crashes

  34. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (PhiAccrualFailureDetector, B)

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to ArrowAssoc[PhiAccrualFailureDetector] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (phiAccrualFailureDetector: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (phiAccrualFailureDetector: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: PhiAccrualFailureDetector

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to ArrowAssoc[PhiAccrualFailureDetector] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (phiAccrualFailureDetector: ArrowAssoc[PhiAccrualFailureDetector]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: PhiAccrualFailureDetector

    Implicit information
    This member is added by an implicit conversion from PhiAccrualFailureDetector to Ensuring[PhiAccrualFailureDetector] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (phiAccrualFailureDetector: Ensuring[PhiAccrualFailureDetector]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from FailureDetector

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from PhiAccrualFailureDetector to StringAdd

Inherited by implicit conversion any2stringfmt from PhiAccrualFailureDetector to StringFormat

Inherited by implicit conversion any2ArrowAssoc from PhiAccrualFailureDetector to ArrowAssoc[PhiAccrualFailureDetector]

Inherited by implicit conversion any2Ensuring from PhiAccrualFailureDetector to Ensuring[PhiAccrualFailureDetector]

Ungrouped