Spectrum of Failure Models 00:00:01 Silence is evidence, not a diagnosis A dispatch service stops hearing its leader's heartbeat. In the crash-stop example the leader has actually stopped. Its peers must still make a decision using only what they can observe. Node 2 leads and sends heartbeats. It stops completely. The heartbeats stay away longer than the timeout. Node 1 asks for votes in term 2. With its own it has 2 of 3. Two nodes carry on. One more crash would stop it. A missed heartbeat can justify suspicion. A majority election and safe log rules determine who may lead next, even when the original silence came from a network delay. 00:00:43 Stock survives a restart A stock keeper durably logs each confirmed change. The process crashes and loses memory after recording four remaining units. Predict the result if recovery replays that durable history. stock equals 5 is written to the log and forced to disk. The change is applied and confirmed. stock equals 4 follows the same way. Memory is gone. The log is still there. The node reads its log from the start. The last entry gives stock equals 4, as confirmed before the crash. Separate a process crash from loss of the storage device. Recovery from a surviving log says nothing about surviving a disk failure without additional durable copies. 00:01:30 A retry with the same delivery number A warehouse message goes missing, and its sender cannot tell whether the request or the confirmation vanished. Retry delivery number seventeen and watch the receiving side identify it. Messages flow between the nodes. The network drops a message from node 1 to node 2. Node 1 waits for the acknowledgement in vain. It sends the same message with the same id 17. The acknowledgement arrives. Had only the answer been lost, the id would have stopped a second run. Deduplication works if the receiver records the identifier consistently with the effect and retains it through the retry window. A timeout by itself cannot undo a completed delivery. 00:02:15 A slow node passes the health check A node usually answers in twenty milliseconds and sometimes pauses for eight seconds. A diagnostic probe happens to succeed between pauses while real requests have already started piling up. All answer in 20 ms. A long garbage collection. Its health check still passes between pauses. Without a timeout, the caller's threads wait 8 seconds each. With 300 ms the caller gives up and asks node 3. After several timeouts node 2 is left alone for a while. Bound the caller's wait, observe application-level latency and choose safe retry behavior. Canceling or timing out a local wait does not necessarily stop work already executing remotely. 00:03:02 The old leader wakes twenty seconds late A paused leader still holds its old token. The replacement has already used a newer token at storage. Predict what the destination should do with the returning leader's write. It writes to storage with token 1. Garbage collection for 20 seconds. Others time out. It is elected and writes with token 2. Storage remembers 2. It still believes it leads and writes with token 1. Storage refuses: 1 is below 2. Persist and compare monotonically ordered fencing tokens at the resource that accepts writes. A process's private belief about its lease cannot protect shared data after a long pause.