Failure detector
A failure detector is a component that uses observations to report whether another process or endpoint is suspected of being unavailable.
Chandra and Toueg characterize unreliable failure detectors by completeness, which requires crashed processes to be suspected eventually, and accuracy, which limits suspicion of correct processes. Combining the two properties gives eight classes. Consensus can be solved even with detectors that make an infinite number of mistakes. [3]
With the eventually weak class, written ◇W, consensus is solvable when fewer than ⌈n/2⌉ of n processes crash, that is, with a majority of correct processes. A companion paper shows that ◇W is the weakest failure detector for solving consensus. [3]
Cassandra runs a variant of the phi accrual detector on every node, and each node gossips once per second. UP and DOWN decisions are local and are not propagated, and convicting a node stops reads being routed to it without removing it from membership. [1]
Relations
- related
- Phi accrual failure detector, Gray failure, I/O fencing, I/O timeout, Failure detector mistake rate, Differential observability, Fail-slow, FLP impossibility, Partial synchrony, Perfect failure detector, Eventually perfect failure detector, Crash-stop failure model, Omission failure
Advantages
- Separates failure suspicion from the protocol that uses it, so an algorithm can be proven correct for a stated detector class. [3]
Limitations
- A suspicion can be mistaken, so it does not prove that the suspected process has stopped. [3]
- Heartbeats show that a messaging path works, not that the application makes progress or that writes are durable. [1]
Citations
- Apache Cassandra documentation: Dynamo, Gossip, Ring Membership and Failure Detection.
- Tushar Deepak Chandra and Sam Toueg. Unreliable Failure Detectors for Reliable Distributed Systems. Journal of the ACM 43(2), 1996, pp. 225-267.
Further reading
Sources & caveats
- ct96 is the 1996 Journal of the ACM paper by Chandra and Toueg of Cornell University, read on 2026-10-22 in the abstract, introduction, class definitions and consensus sections.
- The eight classes and the fewer than ⌈n/2⌉ crash bound come from ct96.
- cassandra-membership is the Apache Cassandra Dynamo architecture page, re-read on 2026-10-22 in the gossip and failure detection sections.
- The once-per-second gossip round comes from cassandra-membership.