How do you scale a self-hosted Git server (GitHub Enterprise Server, GitLab, Gitea) for heavy CI traffic?
AdvancedProductionMonorepos, large files and repository performance
Answer
Offload fetches to read replicas or caching proxies (Git mirrors, GitHub Enterprise cache replicas), use shallow and filtered clones in CI, enable bitmaps, schedule repacks off-peak, and watch ref count and pack count. Large fan-out from CI is the usual load, not developers.
More on Monorepos, large files and repository performance
What are the main trade-offs of a monorepo?IntermediateHow do you make CI efficient in a monorepo?AdvancedHow do you onboard developers to a very large repo without a 30-minute clone?IntermediateWhat does Scalar do and when do you recommend it?Advanced`git status` takes 20 seconds in a big working tree. How do you fix it?AdvancedWhen should a team adopt Git LFS and when should it avoid it?Intermediate