Improving a Distributed System Post-Incident
summary
Case study of a week-long outage in an IP address management service at DigitalOcean handling 4.2M active IPs and ~390k assignments/day: database write latency jumps from ~40ms–2s to >30s, causing 50–100% allocation errors. Mitigations include disabling canaries, moving heavy nightly queries to read replicas, switching transaction isolation from REPEATABLE READ to READ COMMITTED after nine days of testing, reducing SQL queries from 3–4 to 1–2, and changing retry logic to three discrete retries; monitoring added with Prometheus, Grafana, Lightstep and Kibana/Cabana.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:00Background
- 2:14Goal of the talk
- 6:07It all started with a page...AT 4AM!
- 7:31Initial investigations
- 8:23Usual latency
- 8:48Latency during incident
- 9:13LightStep capture
- 9:39Error rate was through the roof
- 10:23What was causing the issue?
- 11:56How do we fix this?
- 14:25Quick patch?
- 16:11Testing looked good!
- 18:08New discoveries
- 20:50Solution?
- 22:43Culmination of our efforts
- 25:07Monitoring Changes
- 26:29Testing Changes
- 27:50Teamwork + Blameless Culture
- 30:23Takeaways
- 31:43Personal Learnings
