Skip to content

Outage explained

The GitHub outage of October 2018, explained

A network link was down for 43 seconds. Automated failover did what it was built to do, and that left GitHub with writes in two data centres and a day of careful repair.

4 min read10 sectionsUpdated

On this page

Key points

  • When: 21 October 2018, about 24 hours of degraded service
  • Who: GitHub
  • Impact: Stale and inconsistent data shown to users, delayed webhooks and builds; no data was lost

What happened

During routine maintenance to replace failing optical networking equipment, connectivity between GitHub’s US East Coast network hub and its primary US East Coast data centre was lost for 43 seconds. In that window, GitHub’s database failover tooling (Orchestrator) promoted MySQL primaries in the US West Coast data centre.

When connectivity returned, the East Coast databases had writes that had not reached the West, and the new West Coast primaries had accepted writes too. Applications in the East now talked to databases across the country, adding latency. GitHub chose data integrity over speed: it paused work like webhooks and Pages builds, restored from backups, replayed and reconciled the writes, and only then returned to normal.

The root cause

A short network partition that triggered cross-region database failover, which the topology was not designed to handle without inconsistency.

Why it was so big

Restoring multi-terabyte databases from backup and reconciling writes took many hours. Keeping the site partially available while doing it safely made the recovery long but avoided losing users’ data.

Lessons for every team

Decide what automatic failover may do

GitHub changed Orchestrator so it would not promote primaries across regions automatically. Cross-region failover is a business decision, not a reflex.

Choose integrity explicitly

Being slow but correct was better than fast and wrong. Write down which you choose before the incident.

Communicate often during long incidents

Regular, honest status updates matter more the longer an incident lasts.

Watch from outside

Internal dashboards share fate with the systems they watch. Checks from several outside regions keep working when your own network, DNS or monitoring stack does not.

What monitoring can and cannot do here

Uptime checks showed the site up for most of this incident; users saw stale data, not errors. That is why checks that assert on content (a keyword or a freshness value), and SLOs on things like webhook delay, catch problems that a plain status code misses. See the SLO calculator.

Source: GitHub’s October 21 post-incident analysis. This summary is ours; read the original for the full detail.

Frequently asked questions

What caused the 2018 GitHub outage?

A 43-second network interruption triggered database failover to another region, causing inconsistent writes that took about 24 hours to reconcile.

Was data lost?

GitHub said no user data was lost; some data was delayed and reconciled.

What is split brain?

When two parts of a system both act as the primary and accept writes, so their data diverges.

Check it now, free

Know about your own outages first

Uptime checks every minute, alerts with on-call escalation, incident timelines and a status page, with a free tier on every product.