Microsoft’s final Outlook outage report details testing gaps and safeguards that backfired

LongbridgeAII'm LongbridgeAI, I can summarize articles.

The bug behind last week’s global Microsoft 365 outage struck only newer, more powerful servers in a key part of Microsoft’s network. That’s because it created a kind of traffic jam inside each server, and the more work a machine tried to do at once, the worse the jam got. The newer servers are built to do more at once, so they’re the ones that seized up.

One reason Microsoft didn’t catch it in advance: it was testing on older servers.

“Our testing did not adequately represent the combination of hardware and traffic mix encountered during this incident,” the company acknowledged in its final report, released Friday evening, a week after resolving the outage that crippled Outlook and cut off email for people around the world.

Testing that more closely replicates the company’s production environment is one of 13 next steps in the report — measures the company says it will take to keep it from happening again. The list is also aimed at reassuring the businesses that rely on Microsoft for email and collaboration, after CEO Satya Nadella acknowledged at the company’s Ignite conference this week that it has work to do on resilience.

Many of the other steps identified in the report go after a bigger problem: during the incident, the safeguards meant to contain the failure spread it around the world instead.

What set it off: As detailed in Microsoft’s preliminary report last weekend, the bug at the center of the outage had been sitting dormant since July, when Microsoft started rolling out the software update that introduced it. For more than three months, it caused no problems.

The bug affected the servers that make up what Microsoft calls its network gateway, a front door that connects people to Outlook email and other Microsoft 365 services. The flaw came from a Windows update used only on those servers. Standard versions of Windows weren’t affected.

So what was the bug? Microsoft’s final report gives a partial answer, saying it came from a change to how the gateway servers handle incoming connections.

Under heavy load, it turned out, the Windows process that sets up those connections bogged down, with tasks stuck waiting on each other until the servers ran out of computing power and memory and stopped responding.

The final report doesn’t say what the July update was meant to fix. But it does lay out three conditions that finally set the bug off. Without the bug, even all three together would have been routine, the report says.

First, nearly 14% of the gateway’s server capacity was already offline that day for routine software updates. That’s normally not a problem, because Microsoft keeps enough spare capacity to absorb it. But it meant fewer servers were available to carry the load.

That’s a different explanation from the preliminary report, which blamed the missing capacity on an unrelated problem.

Second, all of Microsoft Teams’ traffic landed on those same servers. Teams normally runs through a separate gateway of its own. About 15 hours before the outage, a routing glitch on that Teams gateway in Microsoft’s US East region set off an automatic switch that moved all Teams traffic worldwide onto the servers that handle email.

Third, the U.S. workday got going. Widespread failures began around 8 a.m. Pacific, as traffic in North America climbed toward its daily peak.

How it spread: As servers stopped responding, Microsoft’s systems automatically moved their traffic to healthy servers nearby, which had the same bug and buckled under the extra load. At the low point, more than 80% of the gateway’s servers in North America were unresponsive.

The system then shifted traffic to other regions, spreading the problem further.

“Within about two hours of the broad failures that began in North America, servers in every region were affected globally,” the report says.

The preliminary report had blamed that spread partly on “a separate issue.” The final report doesn’t repeat or explain that phrase. Instead, its findings say the way Microsoft distributes traffic “can cascade failures to other regions.”

Once the servers went down, getting them back up was its own problem. As servers came back online, they were swamped by pent-up demand and froze again, a pattern engineers call a “thundering herd.” Microsoft says it will ease traffic back onto recovering servers gradually. That fix doesn’t have a date yet.

The fixes: To keep a failure from spreading again, Microsoft says it will change how its systems shift traffic between regions, so a problem in one part of the world stays there.

It also plans to split up the servers that handle email, so a surge from another service like Teams can’t take them down. And Teams will switch over only in the region that has the problem, not worldwide.

Some of the fixes are due by the end of the year, others by the end of March. Several don’t have a date yet.

Microsoft says its first notice to customers went out about 20 minutes after the outage took hold, and it plans to shorten that by the end of the year. No business email was lost, according to the report, though some delayed messages to consumer mailboxes that had been inactive for more than 30 days bounced back to senders.

The report also confirms what Microsoft said the day after the outage began: it wasn’t hackers, and it wasn’t AI. “This incident was confirmed not to be caused by a cyberattack, and we found no evidence of malicious activity,” it says. “This change was not caused by AI tooling.”

The new testing is supposed to be in place by the end of March, according to the final report. This time, the company says, the machines in the lab will actually match the ones running the service in production.

Source: GeekWire The copyright of this article belongs to the original author/organization.

The views expressed herein are solely those of the author and do not reflect the stance of the platform. The content is intended for investment reference purposes only and shall not be considered as investment advice. Please contact us if you have any questions or suggestions regarding the content services provided by the platform.