phi-accrual-detector · shipping · also phi failure detector, phi accrual detector

Phi accrual failure detector

A phi accrual failure detector expresses suspicion as the negative base-10 logarithm of an estimated heartbeat inter-arrival tail probability.

A threshold converts the score into an action; the score is not a posterior probability of node failure. Its meaning depends on the arrival model. The original design keeps a sliding window of inter-arrival samples and fits a normal distribution from their mean and variance. Under that model, thresholds of 1, 2 and 3 correspond to about 10%, 1% and 0.1% chances that a suspicion is later contradicted by a late heartbeat. [1]

The original week-long wide-area test sent 5,845,712 heartbeats at a 100 ms target, measured at a 103.5 ms mean, with 1,000-sample windows. The mistake rate fell sharply between thresholds 0.5 and 2, and detection time rose sharply beyond 10 or 11. [1]

One open-source database release, version 5.0.0, keeps 1,000 samples, divides elapsed time by the sampled mean and scales the result by 1/ln(10), about 0.434, for threshold comparisons and reporting. That matches an exponential rather than a normal tail. Seeding, filtering and pause handling also affect behavior. [2]

A fitted phi tail is not an empirically established false-suspicion rate. With zero exceedances in n independent held-out intervals and a prespecified fixed delay, the one-sided 95% binomial upper bound is 1 - 0.05^(1/n). Repeated polls during one gap are not independent intervals; adaptive thresholds and dependence need a different validation design. [4]

Relations

related
Failure detector, Interarrival time, Gray failure, I/O fencing, Binomial proportion, Failure detector mistake rate, Differential observability, Eventually perfect failure detector

Advantages

  • One score can drive graded actions, such as pausing new work at a low threshold, resubmitting unfinished work at a moderate one and releasing resources at a high one. [1]

Limitations

  • Scores are stable only after the window fills, and the reported experiment excluded the warm-up period before 1,000 samples were collected. [1]

Citations

  1. Hayashibara, Defago, Yared and Katayama, The phi accrual failure detector, JAIST IS-RR-2004-010 (10 May 2004), sections I and IV-V. (accessed 2026-10-23)
  2. Apache Cassandra 5.0.0: FailureDetector.java, SAMPLE_SIZE, PHI_FACTOR, ArrivalWindow.phi and interpret. (accessed 2026-10-23)
  3. NIST Dataplot: Exact binomial confidence limits, including the one-sided convention. (accessed 2026-10-19)

Further reading

  1. Phi failure detectors: suspicion is not a failure probability (accessed 2026-10-17)
Sources & caveats
  • phi-report re-read 2026-10-23, sections I and IV to V, for the definition, the normal fit, the threshold-to-mistake mapping, the experiment figures and the graded-action example.
  • cassandra-500 re-read 2026-10-23 as FailureDetector.java at tag cassandra-5.0.0 for SAMPLE_SIZE, PHI_FACTOR, ArrivalWindow.phi, interpret and the local-pause guard.
  • nist-exact is unchanged and supports the binomial bound only.
  • The exponential-tail remark follows from -log10(exp(-t/m)) = t/(m ln 10).
  • The differential-observability entry links here because a heartbeat score records one monitor's view of arrivals, which can disagree with what applications observe.
  • A companion analysis on suspicion scores is listed but not used in prose.

JSON: /data/terms/phi-accrual-detector.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Phi accrual failure detector. Hesela. 2026-11-16. https://hesela.dev/terms/phi-accrual-detector/