Repack git repositories daily

The volume of loose refs which get replicated to our git backends
pile up quickly during periods of heavy use, which increases load
and network traffic on the servers, slowing down updates and raising
the risk from network errors. Reduce the scheduled repack frequency
from weekly to daily, which should also result in quicker repacks.

Change-Id: I6380e67444c54f5b1a1c1b5b631e95c5a20f119a
This commit is contained in:
Jeremy Stanley 2014-03-04 15:45:00 +00:00
parent 1f377429f1
commit 2f4631cc0e

View File

@ -104,7 +104,6 @@ class openstack_project::git_backend (
cron { 'mirror_repack':
user => 'cgit',
weekday => '0',
hour => '4',
minute => '7',
command => 'find /var/lib/git/ -not -path /var/lib/git/zuul -type d -name "*.git" -print -exec git --git-dir="{}" repack -afd \; -exec git --git-dir="{}" pack-refs --all \;',