Design a On-Call Escalation
Design a system that wakes up the right engineer when something breaks. Monitoring tools send alert events to it; it groups them into incidents, works out who is on call for the affected service, and notifies that person by push, SMS and phone call. If nobody acknowledges within a set time, it escalates to the next person in the escalation policy, and so on, until someone takes it.
The service has 40,000 customer accounts and 1 million users, and takes about 500 million alert events a day. The hard part is that it must work best exactly when everything else is failing: a large cloud outage makes every customer's monitors fire at once, so events jump 10 to 30 times to 200,000 a second, nearly all of them duplicates. Through that storm, every real incident must page someone within seconds, every escalation must fire on time, and an engineer must never get 500 pages for one problem.
Good questions to ask first
Decide what you would assume for each before you look at ours.
- 1Where do alerts come from?
- 2How do we know two alerts are the same problem?
- 3How are people notified?
- 4What does an escalation policy look like?
- 5How are on-call schedules defined?
- 6How fast must a page go out?
- 7Can a page be lost?
- 8Do we build the SMS and voice network?
How to spend the 45 minutes
- 5minPart 1: Requirements and scope
- 5minPart 2: Estimates
- 5minPart 3: API
- 15minPart 4: Architecture, stage by stage
- 15minPart 5: Timers, storms and failures