SpotifySpotify EngineeringIncident / postmortem
September 29 Outage Incident Report: What we learnt
Summary
On September 29, a conflict between two independently tested deployment changes caused ArgoCD to repeatedly overwrite autoscaler-managed replica counts for services using Argo Rollouts with a testing environment. This affected a critical authentication service, preventing Spotify apps from loading content or playing music. The re-issuing of tokens after the outage created a 200 times increase in traffic, overwhelming remaining instances and preventing automatic recovery. Most regions recovered by 16:30 UTC, but one European region took until 19:34 UTC due to the thundering herd of returning apps. Spotify is implementing safeguards to prevent deployment automation from overwriting replica counts and improving overload behavior.
Context
On September 29, a conflict between two independently tested deployment changes caused ArgoCD to overwrite autoscaler-managed replica counts for services using Argo Rollouts with a testing environment. This affected a critical authentication service, disrupting user access. Re-issuing tokens after the outage created a 200 times traffic surge, overwhelming instances and delaying recovery. Most regions recovered by 16:30 UTC; one European region took until 19:34 UTC due to the thundering herd.
Approach / What changed
Simplify emergency controls for manual overrides, pausing deployment automation, and scaling services; prevent deployment automation from overwriting autoscaler-managed replica counts; improve guidance and tooling for gradually restoring traffic from the thundering herd and scaling services together with their dependencies; improve workload behavior during overload, including loadshedding and reliable usage metrics.
Takeaways
A conflict between two independently tested deployment changes caused ArgoCD to overwrite autoscaler-managed replica counts, leading to cascading failures.
The login system’s minimum replica count was too low to protect against downscaling, and the re-issuing of tokens after downtime caused a 200 times increase in traffic.
Overloaded services underreport request traffic if it is dropped early as part of loadshedding, making it difficult to distinguish crashes causing capacity loss from capacity loss causing crashes.
FAQ
Why did the login system fail to recover automatically?
The login system's minimum replica count was too low to protect against downscaling. Additionally, the re-issuing of tokens after downtime caused a 200 times increase in traffic compared to before the incident, overwhelming the remaining instances and causing them to fail.
Why did one European region take longer to recover?
The flood of returning apps after the initial recovery overwhelmed the services behind authentication in one European region. This caused full recovery to be delayed until 19:34 UTC, while most other regions had recovered by 16:30 UTC.
Source and freshness
- Source
- engineering.atspotify.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.