{
  "slug": "phi-accrual-detector",
  "term": "Phi accrual failure detector",
  "aliases": [
    "phi failure detector",
    "phi accrual detector"
  ],
  "definition": "A phi accrual failure detector expresses suspicion as the negative base-10 logarithm of an estimated heartbeat inter-arrival tail probability.",
  "note": "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. [phi-report]\n\nThe 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. [phi-report]\n\nOne 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. [cassandra-500]\n\nA 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. [nist-exact]",
  "related": [
    "failure-detector",
    "interarrival-time",
    "gray-failure",
    "io-fencing",
    "binomial-proportion",
    "failure-detector-mistake-rate",
    "differential-observability",
    "eventually-perfect-failure-detector"
  ],
  "citations": [
    {
      "id": "phi-report",
      "title": "Hayashibara, Defago, Yared and Katayama, The phi accrual failure detector, JAIST IS-RR-2004-010 (10 May 2004), sections I and IV-V.",
      "url": "https://dspace.jaist.ac.jp/dspace/handle/10119/4784",
      "accessed": "2026-10-23"
    },
    {
      "id": "cassandra-500",
      "title": "Apache Cassandra 5.0.0: FailureDetector.java, SAMPLE_SIZE, PHI_FACTOR, ArrivalWindow.phi and interpret.",
      "url": "https://github.com/apache/cassandra/blob/cassandra-5.0.0/src/java/org/apache/cassandra/gms/FailureDetector.java",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-phi",
      "title": "Phi failure detectors: suspicion is not a failure probability",
      "url": "https://hesela.com/analyses/phi-failure-detectors-suspicion/",
      "accessed": "2026-10-17"
    },
    {
      "id": "nist-exact",
      "title": "NIST Dataplot: Exact binomial confidence limits, including the one-sided convention.",
      "url": "https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/exacbici.htm",
      "accessed": "2026-10-19"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "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.",
      "citationIds": [
        "phi-report"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Scores are stable only after the window fills, and the reported experiment excluded the warm-up period before 1,000 samples were collected.",
      "citationIds": [
        "phi-report"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-16",
  "provenance": [
    "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."
  ]
}
