Constructor that picks configuration from the settings.
Belongs to the akka.actor.ActorSystem. Used for logging.
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
Number of samples to use for calculation of mean and standard deviation of inter-arrival times.
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.
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.
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)
The clock, returning current time in milliseconds, but can be faked for testing purposes. It is only used for measuring intervals (duration).
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.
The clock, returning current time in milliseconds, but can be faked for testing purposes.
The clock, returning current time in milliseconds, but can be faked for testing purposes. It is only used for measuring intervals (duration).
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)
Records a heartbeat for a connection.
Records a heartbeat for a connection.
Returns true if the connection is considered to be up and healthy and returns false otherwise.
Returns true if the connection is considered to be up and healthy and returns false otherwise.
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.
Number of samples to use for calculation of mean and standard deviation of inter-arrival times.
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.
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.
Removes the heartbeat management for a connection.
Removes the heartbeat management for a connection.
Removes all connections and starts over.
Removes all connections and starts over.
Belongs to the akka.actor.ActorSystem.
Belongs to the akka.actor.ActorSystem. Used for logging.
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
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.