Configure Gitaly to schedule nightly repo optimization
We have an RPC OptimizeRepository that is designed to be called to improve performance of repos. Currently, it is not being utilized by Rails. It may be very complex to figure out the best way to invoke it from Rails. A more incremental approach might be invoking it internally from Gitaly on a routine schedule (e.g. nights, weekends) similar to a cron job.
Edited by Paul Okstad (ex-GitLab)