Interview Prep/Git & GitHub/Monorepos, large files and repository performance

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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Monorepos, large files and repository performance