Menu
Medium #system-design·November 26, 2026

GitHub's 2018 Database Outage: Lessons in MySQL Replication and Disaster Recovery

This article dissects GitHub's 2018 database outage, providing a critical case study on the complexities of MySQL replication, automatic failover, and disaster recovery. It highlights the hidden risks in highly available systems, specifically how a short network partition led to a prolonged recovery effort due to replication inconsistencies and tooling limitations.

Read original on Medium #system-design

The 2018 GitHub Outage: A Case Study in Database Resilience

GitHub's 2018 incident, which stemmed from a brief network partition, evolved into a nearly 24-hour database recovery event. This case study is invaluable for understanding the intricacies of maintaining data consistency and availability in a distributed database environment, particularly with MySQL's replication model. It underscores that even robust, highly available systems can harbor critical single points of failure or complex recovery paths.

MySQL Replication Challenges

The core of the problem lay in how MySQL replication behaved under network stress. A primary instance becoming isolated from its replicas can lead to stale data on the primary if it continues to accept writes while replicas promote themselves. When the partition heals, reconciling these divergent states without data loss or prolonged downtime is a significant challenge.

⚠️

Split-Brain Scenarios

A split-brain scenario occurs when two or more nodes in a distributed system (like a database cluster) believe they are the primary, leading to data divergence and potential corruption. Robust quorum-based mechanisms are essential to prevent this.

MySQLReplicationDisaster RecoveryHigh AvailabilityOutageFailoverDatabaseIncident Response

Comments

Loading comments...