From 2f4631cc0e2a03f7ecd92009dfade71bd8df860a Mon Sep 17 00:00:00 2001 From: Jeremy Stanley <fungi@yuggoth.org> Date: Tue, 4 Mar 2014 15:45:00 +0000 Subject: [PATCH] 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 --- modules/openstack_project/manifests/git_backend.pp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/openstack_project/manifests/git_backend.pp b/modules/openstack_project/manifests/git_backend.pp index 42795428fe..747f1ce90d 100644 --- a/modules/openstack_project/manifests/git_backend.pp +++ b/modules/openstack_project/manifests/git_backend.pp @@ -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 \;',