Tales in scalability: how Google has seen users break Git
summary
Google runs a hosting service for hundreds of thousands of repos, sees bursts above 20 updates/sec, Android has ~2 million refs and Chromium >20 million objects producing 23 GB packfiles, and clones can stall for minutes. Engineers build reachability bitmap files attached to commits to calculate fetch differences with bitwise ops, experiment with shallow clone and partial clone semantics, and adopt protocol v2 (bigger negotiation rounds, targeted refs, Fibonacci skipping) — these reduce negotiation time and large unnecessary transfers.
AI-written summary · about
chapters (13)
- 0:00Intro
- 0:16We are the Git team that...
- 1:23Git Google scale
- 5:27Why would git be slow?
- 6:28Negotiation Calculate what the client is missing
- 7:47Reachability bitmap in a nutshell
- 9:34Does the client need the whole history?
- 10:06Cont whole history shallow clone
- 12:20Legacy practices: revision numbering
- 13:36(Cont) Revision numbering: DIY with Chromium
- 16:32(Cont) Revision numbering the right way?
- 19:15Tree or Forest. A Gerrit story
- 21:45Cont Tree or Forest Finding your way
