Sharding And Partitioning
What this trail covers
This feature thread tracks the evolution of partitioning GitHub's relational databases to handle scale. Initially, GitHub.com relied on a single large MySQL database cluster. Over time, the company introduced strategies like virtual partitions, schema domains, and SQL linters to logically separate data. For physical migration, they adopted Vitess for vertical sharding and developed a custom write-cutover process using MySQL replication and ProxySQL. These efforts have resulted in significant loa. The current evolution focuses on migrating the remaining busiest repositories to Azure by changing the scope of the quorum from the whole repository to individual references, thereby increasing write throughput and enabling the use of ephemeral virtual replicas for reads, decoupling storage from compute.
All GitHub trails