The Facebook outage of 2021
medium 26 minOn 4 October 2021 a maintenance command took down every link of Facebook's backbone.
When it comes up
The moments this idea belongs in a design interview, and the moments it does not.
Signals
When it comes up
| You hear | Say | Because |
|---|---|---|
| How do you reach five nines? | List what the copies share | A shared cause beats any number of copies |
| How do you deploy configuration? | Simulate, waves, undo timer | One command must not reach everything |
| Health checks remove bad hosts | Add a floor and fail open | Every host can fail the same check |
| What if your own tools are down? | Independent rescue path and paper runbook | Repair must not need the broken part |
| How do you recover? | In steps, watching power and caches | The return can cause a second outage |
| Tell me about an outage you studied | Trigger, cause, why it was slow, change | It shows structure and no blame |
In the interview
- Separate trigger, cause and symptom
- Name the shared dependency
- Offer one change per cause
- Say which facts come from the report
Avoid
- "DNS broke" as the whole answer
- Blaming one engineer
- Money figures you cannot source
- "Just add more servers"
Options
Compare your moves
Every edge location fails its health check in the same minute. What should they do?
BreaksAll withdraw
- How
- Each one trusts its own check and stops announcing.
- Limit
- Nobody is left. The service disappears and so do error pages.
- Choose when
- Only if one location fails alone.
WorksNever withdraw automatically
- How
- People decide.
- Limit
- One broken location keeps attracting users until someone wakes up.
- Choose when
- Few locations and a fast on-call team.
StrongWithdraw up to a floor, then fail open
- How
- A limited share may withdraw. Beyond it, keep announcing, serve a static answer and page people.
- Limit
- Locations need a shared view or a safe default when they cannot see each other.
- Choose when
- Many locations behind one address.
How do engineers reach routers when production is down?
BreaksThe normal VPN and tools
- How
- Same network, same DNS, same sign-in.
- Limit
- They go down with production.
- Choose when
- Never as the only way.
WorksSend people to the building
- How
- Local consoles with strict access.
- Limit
- Travel and entry take hours.
- Choose when
- As the last resort.
StrongIndependent management path, drilled
- How
- Own links, names and sign-in, two-person control, used every month.
- Limit
- Costs money and must be protected like production.
- Choose when
- Any system whose outage is expensive.