Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Cloud

A bug dormant since July took down Microsoft 365 email: over 80% of its gateways failed

A July defect, invisible in load tests on low-core machines, kept Exchange Online down for almost a day. Capacity lessons for any SRE team.

A change rolled out in July 2026 passed load testing, reached production without a hint of trouble and then sat dormant for four months. On November 12, losing 14% of Microsoft 365's network gateway capacity was enough to wake it up: within two hours it had spread across the fleet, and at its worst more than 80% of the servers had stopped responding. Exchange Online, and Outlook with it, was down for the better part of a day.

Microsoft published its preliminary post-incident report on November 15, 2026, and The Register summarised it the following day. The final report is due on November 20, but what we already know carries a very specific lesson about capacity headroom and load testing.

A textbook cascade

The sequence, in UTC, according to the preliminary report:

Time (UTC)What happened
Nov 12, 01:07Teams fails over to the primary gateway that also serves Exchange Online
Nov 12, 16:03The connectivity anomaly monitor flags rising failures
Nov 12, 16:33First support case comes in
Nov 13, 00:30Connection negotiation is identified as the main cause of access failures
Nov 13, 07:20Mitigation applied: an update that returns the affected code to a known good state
Nov 13, 16:10Microsoft confirms the service is healthy
Nov 14, 04:15Final customer update

The defect caused lock contention inside an internal Windows process, which ended up exhausting CPU and memory on the machine. Under normal conditions nobody noticed. With the extra load from the Teams failover and almost 14% of gateway capacity out of service, servers started to fail; their traffic was rerouted to healthy ones, which took on more load, hit the same contention and failed in turn. Microsoft stresses that the service had enough capacity headroom. The catch is that the headroom assumed servers that behave sensibly under pressure, and these did not.

Why testing missed it

The most useful line in the report is this one: "our load testing tended to focus on weaker hardware with fewer cores." It sounds reasonable at first: if it holds up on the small box, it will hold up on the big one. Lock contention does not work that way. The more cores fight over the same lock, the worse it gets, and Microsoft admits the issue is worse on machines with more cores and newer hardware. The test ran exactly where the bug was least visible.

Why restarting and rolling back didn't work

Two of an SRE's go-to tools failed at the same time:

  • Restarting did nothing: each server that came back was hit with the backlog of traffic at once and went down again.
  • Rolling back was not a simple option, because the faulty change was months old. The mitigation was a new update that reverted just that code path, rolled out to groups of servers.

On top of that, Microsoft says its automated recovery processes "were not designed to restore service from this broad unresponsive state." In the meantime it froze deployments and configuration changes, added capacity and rerouted traffic. Teams, OneDrive, SharePoint and the Office apps were able to move off those gateways and suffered less; Exchange Online was not.

What I'm taking back to my own systems

Capacity headroom only counts if a node degrades gracefully. Planning for N+1 or 20% spare capacity assumes an overloaded server gets a bit slower, not that it collapses. If a component can spiral (contention, growing queues, endless GC), rerouted traffic turns a partial outage into a total one. A per-node concurrency limit and shedding load early, even if it means returning errors, protects you more than any amount of headroom.

Load tests need to run on production hardware, especially the biggest boxes. Concurrency bugs scale with core count. If your fleet mixes hardware generations, test on the one with the most cores, not the cheapest.

A change should still be switchable months later. A feature flag that outlives the rollout, or at least the ability to revert one specific change on its own, would have saved hours of diagnosis and of building the mitigation.

Rehearse recovery from zero. Restarting works when the rest of the fleet absorbs the load while a node boots. When almost all of it is down, you need a cold-start procedure: admit traffic in groups and raise the limit gradually.

What doesn't carry over

Few teams run a gateway fleet shared across products at Microsoft 365 scale, or have a failover like Teams' that can shift that much load in one go. We also don't yet know which Windows process was involved or what Microsoft will change: the preliminary report describes causes, not commitments. What is universal is the pattern: a defect that only shows up under pressure, headroom that ignores how a node degrades, and a fleet that infects itself by rerouting traffic.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗