A fleet of 100 servers runs at 70 percent load and an automated system moves traffic off any server it suspects. A switch fault makes 20 of them look dead. Walk through what happens next and how you would design against it.
Sketch your own answer first, then compare it with the one below.
A strong answer
The system moves the 20 servers' traffic onto the other 80. Total demand is 100 x 70 = 7,000 units, so each survivor now carries 7,000 / 80 = 87.5 percent. That is a 25 percent rise in load on every healthy machine, in the middle of a network fault.
Higher load means slower responses, and the heartbeats and health checks share those machines. Latency climbs, a few more servers miss their deadlines, the detector suspects them, their traffic moves, and the load on the remaining servers rises again. The loop feeds itself, and a fault that started with 20 percent of capacity can become an outage of all of it.
The design has to bound the reaction. Cap the number of servers that may be drained at once and cap the share of capacity. Treat a large correlated burst of suspicions as a sign that the observer or network is at fault, and freeze instead of acting. Keep headroom: at 70 percent, losing 20 percent of servers is survivable only if the rest do not tip over, so decide the headroom on purpose from the largest failure you intend to survive. Drain gradually, and shed low-priority work before overloading the survivors. Test it by injecting a correlated suspicion burst in staging and watching the load curve.
Sources
- Naohiro Hayashibara, Xavier Défago, Rami Yared, Takuya Katayama (2004). The φ accrual failure detector.
- Tushar Deepak Chandra, Sam Toueg (1996). Unreliable failure detectors for reliable distributed systems.