Microsoft's Exchange Online Outage: More Cores, More Problems
The final post-incident report is out, and there's a lot to learn from it.
Well, the final post-incident report from Microsoft is out, and the engineering geek in me can't help but be fascinated by this one.
Quick recap (as if anyone needs one): on November 12-13, Exchange Online (and a long list of other Microsoft 365 services) was down for many customers for almost a full day. The formal report is available here.
What happened (the short version)
- Several things went wrong at the same time. The root cause was a latent defect in an update to the network gateway servers that sit in front of Exchange Online. The update went out in July and ran fine for more than three months. Then reduced capacity (about 14% was offline for routine maintenance), a Teams failover onto the same gateway, and peak US traffic all landed at once, and the defect finally showed up.
- At its peak, more than 80% of North American gateway servers were unresponsive. Ouch.
- More cores, more problems. The test labs used older hardware with fewer cores. You'd normally expect older equipment to be the one with performance problems, but here it was the opposite: more cores allowed more concurrent requests, which meant more lock contention.
My takeaways
None of these are knocks on Microsoft. Frankly though, I think almost every org running infrastructure at scale is exposed to at least one of them.
- "What changed recently?" isn't always the right question. Most incident response playbooks start by looking at the last deployment, and that usually works. Here the culprit had been in production for three months, which slowed down finding the root cause and ruled out the usual "just roll it back" fix. Your playbooks need a path for when the cause is old.
- Your test environment is a model of production, and every model has gaps. No one tests on worse hardware on purpose. Lab gear gets older while production gets refreshed, and the gap grows a little every quarter. If your test environment doesn't match production, you're not testing what you're actually running.
- Redundancy only works if failures stay separate. Microsoft runs two independent gateway systems for high availability, which is exactly right. But a failover put Teams and Exchange on the same one, and the shared dependency ended up making the outage bigger. It's worth mapping what your "redundant" systems quietly have in common.
- Recovery is its own load event. Servers that came back online got hit by the flood of reconnections and fell right back over (the classic "thundering herd" problem). Gradual ramp-up and admission control sound boring until you need them.
- Availability is a security concern too. It's the "A" in the CIA triad, and it's easy to forget when we're focused on confidentiality. If email went down for a full day, how would your team handle an incident? Out-of-band communication plans are worth dusting off.
Credit to Microsoft for a detailed and candid write-up. Expanding load testing to their newest high-core hardware and isolating workloads into separate capacity pools are both on the repair list, and both are good calls. Post-incident reports like this are a gift to the rest of us, so it's worth actually reading them.
Posted in: cybersecuritymicrosoft