More GC and repo optimization needed
Problem to solve
As a GitLab Admin, I want newly created mirrored projects to automatically GC and optimize the repository, so that I can rest assured that git repo performance is acceptable.
Currently, we only (afaik) perform GC and optimization after a certain number of pushes to a repo. But some projects might not get much activity. And some projects will perform poorly from the start if they're large and imported from elsewhere.
Intended users
Sidney (Systems Administrator)
Further details
This problem was brought to my attention in this ZD ticket: https://gitlab.zendesk.com/agent/tickets/148215 (internal use only). I received this feedback from the customer:
I'd like to add my thoughts. This problem seems to happen when creating a new project from an existing repositories. In this situation, a user may create the new project and then not touch it again for some time after that. We have our own service for creating internal mirrors of open source repositories from GitLab.com and GitHub.com. We've found it useful to perform a gc after the first pull from those repositories. Is this something GitLab could implement? Such that after the first push to a new project, housekeeping is run? If not then we may need to look into creating a git post-receive hook that does a gc after detecting a push to an empty project with a certain number of commits or tags.