Try
↑ ↓ move↵ openesc close
In this lesson · topic 1 of 7
  1. 1. Silence is all you get
  2. 2. Heartbeats, timeouts and suspicion
  3. 3. Slide one detector along its curve
  4. 4. When a 600 ms pause beats the detector
  5. 5. Watching three hundred nodes without three hundred heartbeats each
  6. 6. Adding up a failover, and the storm a false alarm can start
  7. 7. Check the ten-second timeout

Topic 1

Silence is all you get

4 min read

Something has to notice

A replica stops answering. Before anyone can fail over, elect a new leader or give its lock to someone else, something has to decide that it is gone. That decision is made by a failure detector, and a failure detector has exactly one input: how long it has been since the node was last heard from.

That is the problem in full. A node that has crashed sends nothing. A node that is alive but stuck in a garbage collection pause, swapped out to disk, or behind a congested switch also sends nothing, for a while. From the outside the two are the same until the silence ends. Only a crash never ends it.

A network with no bound

In the model this lesson uses, and in most real deployments, there is no upper limit on how long a message can take or how long a process can stall. Researchers call this an asynchronous network. In it, no amount of waiting proves a crash. You can wait a second, a minute, an hour, and the node might still be about to reply.

So a detector picks a timeout and bets. Wait a short time and you catch real crashes fast, but every slow packet and every pause is a false alarm. Wait a long time and alarms are rare, but a real crash goes unnoticed for all of it.

Predict the shape

The lab watches one node with a ladder of fixed timeouts, all fed the same heartbeats. The node pauses now and then for up to 600 ms, and crashes every ten seconds.

Predict first

You shorten the timeout from 800 ms to 150 ms. What happens to the two numbers that matter?

What the numbers look like

With the defaults, averaged over eight seeds, a fixed timeout of 150 ms raises 7.1measured false alarms per minute of uptime and notices a real crash after 104 msmeasured. A timeout of 800 ms raises 0.0measured per minute and takes 747 msmeasured. Every timeout in between is a point on the same line.

The next topic looks at what a detector can do with the one input it has, and at a detector that adapts its own line.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms