AlgoViz

Fault tolerance and failure detection

medium 24 min

A cluster must notice that a machine is gone, keep serving without it, and bring it up to date when it returns.

Where it shows up

The same pattern appears across everyday software.

  • Apache Cassandra

    Every node gossips once a second, runs a variant of the phi accrual detector and decides for itself. It stops sending reads to a node it considers down and keeps hints for writes.

  • Amazon's Dynamo

    The paper uses sloppy quorums with hinted handoff for short outages, Merkle trees for lasting differences, and gossip for membership.

  • Riak KV

    Has read repair and active anti-entropy, which exchanges Merkle trees that are kept on disk.

  • Consul

    Uses gossip built on the Serf library and documents SWIM and Lifeguard as its foundations.

  • Akka Cluster

    Uses heartbeats with a phi accrual detector and lets you allow for pauses, such as those of garbage collection.

  • Kubernetes

    A node renews a lease to show that it is alive. If the renewals stop, the control plane marks the node and later moves its work.