The part that guesses which machines are dead, and why every guess can be wrong.
A failure detector is the part of a system that guesses which machines have failed. It is only a guess, because in an asynchronous network you cannot tell a dead machine from a slow one.
The Heartbeats topic shows how machines send βI am aliveβ signals. This topic is about the layer above: the rules for deciding from those signals who is dead, and what we can promise about those decisions.
In 1996, Chandra and Toueg described failure detectors by two properties. Completeness is about missing nothing: every crashed node is suspected by the others. Accuracy is about not crying wolf: healthy nodes are not suspected.
| Property | Plain meaning | Fails when |
|---|---|---|
| Strong completeness | Every healthy node eventually suspects every crashed node | Some healthy node never notices a crash |
| Weak completeness | At least one healthy node eventually suspects each crashed node | Nobody notices a crash |
| Strong accuracy | No healthy node is ever suspected | A slow node is wrongly accused |
| Eventual accuracy | After some unknown time, healthy nodes stop being suspected | The accusations never stop |
| Class | Completeness | Accuracy | What it means in practice |
|---|---|---|---|
| Perfect (P) | Strong | Strong | Never wrong. Needs a synchronous network with known time limits. |
| Eventually perfect (βP) | Strong | Eventual | May be wrong for a while, then correct. What real systems aim for. |
| Strong (S) | Strong | Weak (one healthy node is never suspected) | Enough for consensus. |
| Eventually strong (βS) | Strong | Eventually weak | The weakest class that still lets consensus work. Raft and Paxos live here. |
| Style | How it works | Good at | Weak at |
|---|---|---|---|
| Fixed timeout | Suspect after N seconds of silence | Simple, predictable | One number cannot suit every link |
| Adaptive (phi accrual) | Learns normal timing and outputs a suspicion level | Slow links, changing load | More tuning knobs |
| All-to-all heartbeats | Everyone pings everyone | Fast detection | Load grows with the square of cluster size |
| SWIM-style | Ping one random node per round, with indirect probes through others | Fixed load per node at any scale | Slightly slower to spread news |
| Gossip heartbeat | Nodes share heartbeat counters with random peers | Scales, no central point | Detection time grows slowly with size |
A simplified model with a fixed delay pattern (no random numbers). The SWIM-style detector asks a helper to probe D before accusing it, so a slow link alone does not cause a false suspicion. C is really dead, so the helper cannot reach it either.
| Term | Meaning in easy words |
|---|---|
| Failure detector | A component that reports which nodes it suspects have failed |
| Completeness | Crashed nodes are eventually suspected |
| Accuracy | Healthy nodes are not suspected |
| Strong / weak completeness | Every healthy node vs at least one healthy node suspects each crash |
| Eventually perfect (βP) | May be wrong for a while, then becomes right for good |
| Suspect | Believed to be dead, but not yet confirmed |
| False positive | A healthy node wrongly suspected |
| Phi accrual | A detector that outputs a suspicion level learned from past timing |
| SWIM | Scalable gossip-style membership protocol with indirect probes |
| Indirect probe | Asking other nodes to ping a suspected node for you |
| Incarnation number | A counter a node raises to prove it is alive and overrule old suspicions |
| FLP impossibility | No deterministic consensus is guaranteed in a fully asynchronous system with one crash |
| Choice | We gain | We lose |
|---|---|---|
| Short timeout | Fast failover | More false suspicions |
| Long timeout | Few false alarms | Slow to react to real crashes |
| All-to-all heartbeats | Quick, direct | Cost grows as n squared |
| SWIM / gossip | Constant load per node | Slower, fuzzier news |
| Indirect probes | Fewer false positives from one bad link | Extra messages |
| Suspect state | Time to refute | Slower final decision |