Microsoft Blames a July Bug and Two Other Failures for Its Global Outage
微软把全球宕机归因于一个 7 月的缺陷和另外两起故障
The bug passed testing because test machines had older CPUs. Then routine failover raised the load, and automatic rerouting spread the failure to 80% of gateways.
On 12 November several of Microsoft's core cloud services failed worldwide. Outlook, Exchange Online, Teams and SharePoint went down, and millions of users could not reach their email for more than 12 hours.
This week the company published an initial account, and its shape is a lesson in how small defects become large ones. The root cause was a software bug introduced in July. It combined with two separate infrastructure problems to produce a cascading failure that at one point left 80% of Microsoft's network gateway servers unresponsive.
Charles Lamanna, a Microsoft executive, set out the sequence on X. In July, while fixing a problem in the Microsoft 365 network gateway, engineers introduced a defect that caused lock contention in a server process, leaving it unable to handle certain workloads. The build passed the normal tests and was deployed worldwide over several weeks without incident.
It passed because the test environments ran on older, weaker CPUs. The bug was much easier to trigger on newer machines with more cores — a gap between where software is tested and where it runs that most large systems share to some degree.
Two other conditions set the stage. Hours before the outage, Microsoft moved Teams traffic from a standby gateway to the primary one, which also carries Exchange Online, in order to keep Teams working. That is routine failover, but it raised the load on the primary gateway and changed how traffic was distributed across it. Separately, about 14% of gateway capacity had been unusable since an unrelated problem the day before; the remaining 86% was still sufficient for normal work.
With all three present, the outage began. Then the automatic failover made it worse. Servers are supposed to shed load onto healthy machines, but the machines that received the forwarded traffic took on more work, tripped the same bug and went down in turn. Within two hours the failure had reached 80% of the gateway fleet.
The blast radius should have been contained. Microsoft normally limits a failure of this kind through independent capacity partitions and regional separation, but a further problem meant those protections did not stop the cascade from going global.
A fuller report is due this week. The preliminary version is already instructive: the July bug was trivial, the failover was routine, and the lost capacity was unrelated. None of the three was an outage. Together they were.
中文翻译(全文)
11 月 12 日,微软旗下多项核心云服务在全球范围内发生故障。Outlook、Exchange Online、Teams 与 SharePoint 全部宕机,数百万用户超过 12 小时无法访问邮件。
本周公司公布了初步说明,而它的形状正好是一堂关于「小缺陷如何变大」的课。根本原因是 7 月引入的一个软件缺陷。它与另外两起基础设施问题叠加,形成了连锁故障,一度让微软 80% 的网络网关服务器失去响应。
微软高管查尔斯·拉曼纳在 X 上梳理了先后顺序。7 月,工程师在修复 Microsoft 365 网络网关的一个问题时,引入了一个导致服务器进程出现锁竞争的缺陷,该进程因此无法处理某些工作负载。这个版本通过了常规测试,并在数周内分批部署到全球,期间没有出过问题。
它能通过测试,是因为测试环境跑在较旧、较弱的 CPU 上。这个缺陷在核心数更多的新机器上要容易触发得多——「软件在哪里测试」与「在哪里运行」之间的这道缝,多数大型系统或多或少都有。
另外两个条件铺好了舞台。故障发生前数小时,微软为了保住 Teams,把它的流量从备用网关切到了主网关,而主网关同时承载 Exchange Online 的流量。这本是例行容灾切换,却抬高了主网关的负载,也改变了流量在它上面的分布。另外,由于前一天的一起无关问题,约 14% 的网关容量本已无法使用;剩下的 86% 对正常工作负载仍然够用。
三个条件齐了,服务中断就此开始。接着,自动容灾让它变得更糟。服务器本应把负载卸给健康的机器,可接到转发流量的机器承担了更多工作,触发同一个缺陷,接着也倒下了。不到两小时,故障蔓延到 80% 的网关服务器。
影响范围本该被关住。微软通常用独立的容量分区与区域隔离来限制这类故障,但还有另一个问题,使这些保护机制没能挡住连锁反应走向全球。
更详细的报告将在本周发布。初步版本已经很有教益:7 月那个缺陷微不足道,容灾切换是例行操作,损失的容量与它们无关。三者单独都不是一次宕机。凑在一起才是。
重点词汇
- outage/ˈaʊtɪdʒ/n.— a period when a service is unavailable服务中断;宕机Millions lost email for 12 hours.
- lock contention/lɒk kənˈtenʃn/n.— processes fighting over the same resource锁竞争A defect caused lock contention.
- gateway/ˈɡeɪtweɪ/n.— the entry point that routes network traffic网关The gateway took on more load.
- failover/ˈfeɪləʊvə/n.— switching to a backup system automatically容灾切换The failover made it worse.
- cascading/kæˈskeɪdɪŋ/adj.— spreading from one failure to the next连锁的It was a cascading failure.
- blast radius/blɑːst ˈreɪdiəs/n.— how far damage spreads影响半径The blast radius should have been contained.
- partition/pɑːˈtɪʃn/n.— an isolated division of capacity分区It uses independent partitions.
- trigger/ˈtrɪɡə/v.— to set a problem in motion触发The load tripped the same bug.
- unresponsive/ˌʌnrɪˈspɒnsɪv/adj.— not answering requests无响应的80% of servers were unresponsive.
- preliminary/prɪˈlɪmɪnəri/adj.— coming before the full version初步的This is a preliminary report.
阅读测验
共 5 道题目
Why did the July bug pass testing?
What made the failure spread so widely?
About 14% of gateway capacity was already unusable on the day of the outage.
Which three conditions combined? (Select all that apply)
Within about two hours the failure reached _____ of Microsoft's gateway servers.

评论
0 条讨论
登录后发表评论
立即登录暂无评论
成为第一个分享想法的人吧!