Spotify's six-hour login outage: two green changes, one red intersection
Spotify's postmortem: two changes each tested clean combined into an ArgoCD diff that reset minReplicas on every sync. Recovery met 200× traffic and an automation loop fighting the responders.
Spotify's September 29 outage report landed this week, and it deserves a slot in every on-call handbook, because nothing in it failed a test. Two changes to the deployment system each passed their own validation. Combined, they made ArgoCD "fix" the login service's replica count on every sync until the service fell over — and then the recovery machinery kept re-breaking it while humans fought the fog. Six hours, one field.
The mechanics, precisely
Spotify deploys two workload types — plain Kubernetes Deployments and Argo Rollouts — whose schemas differ slightly. Change one touched how test environments are configured. Change two touched which fields the deployment system excludes from its automated diff. Run them together and minReplicas slipped into the diff for workloads that had just been migrated to Rollouts. ArgoCD then treated the autoscaler's live replica count as drift and reset it to the minimum on every sync — the HPA scaling up, a robot scaling down, forever. Only services with both Rollouts and a testing environment hit it, and one of them kept people logged in.
| Change A | Change B | Combined | |
|---|---|---|---|
| Touched | test env configuration | the diff-exclusion list | minReplicas enters the diff |
| Tested alone | passed | passed | nobody tested the pair |
| Production effect | none on its own | none on its own | autoscaler fight, every sync |
- 13:45Errors begin climbing on the login service.
- 13:57The service's "panic mode alert" pages the owning team.
- 14:50Infrastructure preps extra cluster capacity; scale-up attempts keep failing.
- 16:30Login stabilizes; returning traffic hammers the rest. Most regions recover.
- 17:25Login given 3× normal CPU and memory to absorb the token backlog.
- 19:31The faulty downscaling bug is isolated.
- 19:34All-clear. Full recovery took until here in one European region.
The recovery was a second incident
The postmortem's sharpest material is what happened after the fix attempt. When login came back, every stranded client re-issued tokens at once: 200× normal traffic, a thundering herd that knocked the freshly-scaled service over again. Automation re-applied the faulty configuration mid-incident, undoing manual work — Spotify has since built a cleaner way to pause it. Symptoms were ambiguous (crashes causing capacity loss, or capacity loss causing crashes?), a concurrent large deployment supplied competing hypotheses, and load shedding made overloaded services under-report traffic precisely when the responders needed honest numbers.
Six contributing factors, from the report itself
- Deployment configuration mismatch — a test-derived rule applied in production across workload types.
- Insufficient capacity safeguards — the login service's minimum replica count couldn't protect against downscaling.
- Automation kicking in at the wrong time — the reconciliation loop slowed manual recovery.
- Ambiguous symptoms — crash-vs-capacity causality was hard to read, with noise from an unrelated deployment.
- Recovery overloading other services — the herd required more aggressive scaling than anyone modeled.
- Observability friction — load shedding suppressed the very metrics responders needed.
The lesson nobody's diffing
The diff-exclusion list is load-bearing infrastructure. It is also the kind of thing that has no owner, no dashboard, and no test — until the day the autoscaler and the deploy system fight over one integer for six hours. Spotify's fixes say it plainly: stop deployment automation from overwriting autoscaler-managed fields, make emergency overrides easier, restore traffic gradually. The general form: when two subsystems both believe they own a value, you don't have a config problem, you have a jurisdiction problem — and jurisdiction bugs only show up at the intersection nobody tests.
- engineering.atspotify.com — the incident report, Nov 27, all numbers and timeline above
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00