
High Availability Search Architecture for GitHub Enterprise Server
This feature thread tracks the evolution of GitHub's distributed systems for storing and replicating Git repositories, focusing on improving robustness, speed, and flexibility. Initially, GitHub used DRBD for block-level replication, which was sensitive to latency and required replicas to be co-located. The development of DGit (now Spokes) introduced application-level replication, enabling wider geographical distribution of replicas and improved availability through automatic healing and load balancing. The new 'Project Rubicon' architecture further decouples storage from compute, utilizing Azure Blob Storage for immutable Git objects (packs, indexes, read accelerators) and a replicated log service (Ref-CAS) for mutable reference state. This allows for independent scaling of storage and compute components, with virtual replicas acting as stateless caches. Writes involve uploading packs to Blob Storage and updating references in Ref-CAS, while reads involve checking Ref-CAS and fetching necessary packs from Blob Storage into the virtual replica's cache. Compaction nodes in the background merge packs and manage garbage collection directly in Blob Storage, freeing up virtual replicas to focus solely on serving requests. This architecture is designed to support agentic development at scale, handling thousands of writes per second per repository with low-latency reads.
Timeline








































