NewsCrawler.org

Inside GitHub's new Git storage architecture

Inside GitHub's new Git storage architecture
Image: github.blog

GitHub has announced a new Git storage architecture built so that thousands of agents can push to one repository at once. In internal testing, it supported 5,000 concurrent agents working on one repository and 7,200 pushes per second, while serving reads with consistently low latency. The design rests on the observation that only reference updates need agreement between writers, so storing data, serving requests, and maintaining repositories can scale independently.

Git objects are stored as packs[1] in Azure Blob Storage, while references and the list of packs for each repository live in a separate replicated log called Ref-CAS[2]. Each repository is served by a small group of virtual replicas[3], whose local disks are caches that can be rebuilt at any time. When a repository gets busy, more virtual replicas are added, and a background fleet of compaction nodes[4] merges packs and removes unreachable objects without running on the replicas.

To write, a virtual replica indexes the incoming pack, uploads it to Blob Storage, and commits one transaction to Ref-CAS. The target is at least two orders of magnitude more scale than today's busiest repositories, which receive at most dozens of writes in a single second.

Read the original github.blogDiscussion

Discussion

Commenters debate whether the architecture will help with current outages, with some saying it is future planning rather than a fix for today's problems. Several point to similar work by Cursor and enroute.sh, and some report recent 500 errors during pushes.

Sources

Published: First seen: Читать по-русски

Open as a page