Curriculum · Module 05, Consensus and Coordination
Failure detection
Heartbeats, timeouts and suspicion. Why no detector can be both fast and right in a network with no delay bound.
What each topic covers
- A crashed node and a slow node send the same thing, which is nothing. Every detector is a bet on how long to wait.
- What a monitor records, how a fixed timeout and a phi accrual detector turn silence into a verdict, and why the verdict is always a guess.
- Watch one heartbeat stream pass through eleven timeouts and ten phi thresholds, then move your own marker along the tradeoff.
- The measured curve for four timeouts, what phi buys on noisy and quiet networks, and the pause no detector can see through.
- All-to-all heartbeats grow with the square of the cluster. Randomised probing, indirect pings and incarnation numbers keep each node's load flat.
- Detection is one line in a failover budget. Worked arithmetic for the full outage, the daily cost of false alarms, and how a burst of suspicions overloads the survivors.
- Three quick checks on timeout cost, phi's relative threshold and false suspicions, plus the papers behind the lesson.
Topics
- 1Silence is all you get4 min
- 2Heartbeats, timeouts and suspicion5 min
- 3Slide one detector along its curve7 min
- 4When a 600 ms pause beats the detector5 min
- 5Watching three hundred nodes without three hundred heartbeats each7 min
- 6Adding up a failover, and the storm a false alarm can start7 min
- 7Check the ten-second timeout4 min
Practise this lesson
13 interview questions on failure detection, with worked answers and sources.
Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms