
GitHub is dying.
Arjay McCandless@arjay_the_devGitHub is dying.
The speaker explains how a traffic spike, scaling gaps, and cascading retries caused an August 17 GitHub outage. They also describe a second retry storm involving VS Code and Copilot, then tease a broader discussion in part two.
- Views
- 544.9K
- Likes
- 12.2K
- Comments
- 288
- GitHub service outageRetry stormsLoad balancer failuresVS code copilot
Analysis
The speaker explains how a traffic spike, scaling gaps, and cascading retries caused an August 17 GitHub outage. They also describe a second retry storm involving VS Code and Copilot, then tease a broader discussion in part two.
- Explainer
- Spoken
- Original
“GitHub is dying.”
“GitHub is dying. If you're a software engineer, you already know GitHub went down for almost 8 hours on August 17th. But here's exactly what happened. First, GitHub had a new peak in traffic at its central US data center, which caused one of its sidecar proxies to hit a concurrency limit. Normally, this is fine. You can just auto scale and spin up more capacity. But this didn't happen because GitHub's auto scaler was watching the application itself, not the sidecar. So it didn't scale and requests started failing. Then GitHub started retrying those requests and suddenly the infrastructure was handling all of the normal requests plus all the retried requests. This cascaded until four load balancers exhausted their flow limits. Now, these load balancers were part of GitHub's authentication path. So once they were overloaded, authentication started failing all across GitHub. At its peak, around 20% of web and API requests to GitHub were failing. GitHub eventually paused HA proxy on those affected nodes and saw an immediate recovery. But then they ran into a second problem. GitHub had moved some of its traffic to another region to take pressure off the failing region. A delayed response to one internal endpoint exposed a retry bug inside VS Code. Basically, when VS Code tried to get a Copilot off token and that request failed, instead of waiting and retrying, it started retrying a lot very quickly. These retries failed creating more retries leading to a classic retry storm with about 10x traffic amplification. GitHub reduced retries at the gateway level and started returning 403s to a bunch of these requests, which was able to resolve this issue. But this wasn't GitHub's only issue this year, or even this month. And this is where this outage becomes part of a much bigger story about GitHub, which we'll cover in part two.”
- 01Dramatic claim and explanation promise
Establishes the incident's significance and sets a clear expectation for the causal explanation that follows.
State a stark problem, address people familiar with the subject, give a specific incident and duration, then promise to explain what happened.
“GitHub is dying. If you're a software engineer, you already know GitHub went down for almost 8 hours on August 17th. But here's exactly what happened.”
- 02First failure and cascading impact
Fulfills the explanation promise through a cause-and-effect chain, gives the outage scale and partial recovery, and sustains the account by revealing that the resolution was not the end.
Trace the initial traffic surge and capacity limit, explain why scaling did not activate, and show how retries compounded the failure into broad authentication problems. Quantify the impact, describe the first recovery action, then introduce a second problem.
“First, GitHub had a new peak in traffic at its central US data center, which caused one of its sidecar proxies to hit a concurrency limit. Normally, this is fine. You can just auto scale and spin up more capacity. But this didn't happen because GitHub's auto scaler was watching the application itself, not the sidecar. So it didn't scale and requests started failing. Then GitHub started retrying those requests and suddenly the infrastructure was handling all of the normal requests plus all the retried requests. This cascaded until four load balancers exhausted their flow limits. Now, these load balancers were part of GitHub's authentication path. So once they were overloaded, authentication started failing all across GitHub. At its peak, around 20% of web and API requests to GitHub were failing. GitHub eventually paused HA proxy on those affected nodes and saw an immediate recovery. But then they ran into a second problem.”
- 03Secondary failure, mitigation, and broader sequel hook
Completes the incident's second causal chain and resolution, then leaves a broader question open with a direct promise to cover it in a follow-up.
Explain how shifting traffic exposed a retry bug, how repeated retries amplified traffic, and how a gateway-level mitigation resolved the issue. Then frame the outage as part of a larger story and preview its continuation.
“GitHub had moved some of its traffic to another region to take pressure off the failing region. A delayed response to one internal endpoint exposed a retry bug inside VS Code. Basically, when VS Code tried to get a Copilot off token and that request failed, instead of waiting and retrying, it started retrying a lot very quickly. These retries failed creating more retries leading to a classic retry storm with about 10x traffic amplification. GitHub reduced retries at the gateway level and started returning 403s to a bunch of these requests, which was able to resolve this issue. But this wasn't GitHub's only issue this year, or even this month. And this is where this outage becomes part of a much bigger story about GitHub, which we'll cover in part two.”