Failure models
medium 30 minA failure model is a list of the ways a machine or message may go wrong that your design promises to survive.
Where it shows up
The same pattern appears across everyday software.
Kubernetes nodes
A node renews a lease every 10 seconds. After 50 seconds of silence it is marked unknown, and by default its pods are evicted five minutes later, which avoids moving everything for a short fault.
etcd and Raft
Crash-recovery with a majority: three members survive one failure, five survive two. Heartbeats and election timeouts are tuned to the network.
PostgreSQL
The write-ahead log is written before the data pages, so a restart replays it and no committed change is lost, as long as flushing is on.
Cassandra
Nodes gossip and use an accrual detector with a configurable threshold. While a node is marked down, reads avoid it and hints are kept for it.
Consul
Its gossip layer builds on SWIM with changes that lower false alarms from members that are themselves slow.
Blockchains
Validators run by different owners need Byzantine agreement. HotStuff and Tendermint-style protocols accept up to f faulty out of 3f + 1.