Inside GitHub’s new Git storage architecture
GitHub's new Git storage architecture, Rubicon, rests on one observation: only reference updates need ordering.
GitHub's new Git storage architecture, Rubicon, rests on one observation: only reference updates need ordering.
GitHub has moved nearly all Git repositories to replicas split between its own data centers and Azure.
GitHub is rebuilding its Git storage layer because agent-driven workloads are colliding with the design of Spokes.
GitHub replaced RepositoryPushJob, a single sequential background job that ran over 60 push-handling tasks from 20 services, with a Kafka push event fanned out to roughly 16 independently owned, parallel jobs.
GitHub moved CI for GitHub.com to GitHub Actions on larger runners, peaking at about 4,500 concurrent 32-core runners, 15,000 jobs per hour and 150,000 cores.
GitHub built Blackbird, a Rust code search engine, because general text search engines handled punctuation, regex, and GitHub's scale poorly, and brute-force grep would yield about 0.01 QPS.
GitHub Actions on GitHub Enterprise Server went from 2,200 to 7,000 max concurrent jobs on 96-core machines between GHES 3.2 and 3.6 through three main fixes.
Git's garbage collection historically stored recently-written unreachable objects as individual loose files so their mtimes could govern expiry, which bloated storage, exhausted inodes and slowed repacks in busy repositories at GitHub's 18.6 PB scale.
GitHub's code search evolved from a public-only Solr index plus `git grep` for private repos, to a decade-long Elasticsearch deployment that grew to 162 nodes, 1.25PB of storage and over 53 billion indexed files.
GitHub split its monolithic `mysql1` MySQL cluster by first virtually partitioning tables into schema domains (declared in YAML) and enforcing boundaries with query and transaction linters, then physically moving domains to new clusters via Vitess vertical sharding or a custom ProxySQL/GTID-based write-cutover script.
GitHub replaced a Memcached-based API rate limiter, which suffered evictions and could not survive a move to per-datacenter caches, with application-sharded Redis clusters (one primary, several read replicas) and atomic Lua scripts, rolled out behind a feature flag.