From 8fa6a57462bdffaf8d2bab21628f77ee3f358777 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 14 Jun 2018 11:21:31 -0700 Subject: [PATCH] Increase apache mirror cache to 70GB We expect at least 100GB of disk available for the apache mirror caches we run in each region. However, due to htcacheclean lagging apache's ability to cache we cleaned up to 50GB to give us breathing room. Since then we have reorganized the cache layout so that htcacheclean can operate more quickly and don't need as much breathing room. Increase this cache size value up to 70GB which still gives us a conservative ~30GB or so of breathing room. We can continue to increase this number if htcacheclean keeps up. Change-Id: I8a13a5876cea930c5d981af2c7cd6ab36ba867fb --- modules/openstack_project/manifests/mirror.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/manifests/mirror.pp b/modules/openstack_project/manifests/mirror.pp index c33c461ad7..edd65d9be6 100644 --- a/modules/openstack_project/manifests/mirror.pp +++ b/modules/openstack_project/manifests/mirror.pp @@ -339,10 +339,10 @@ class openstack_project::mirror ( } cron { 'apache-cache-cleanup': - # Clean apache cache once an hour, keep size down to 50GiB. + # Clean apache cache once an hour, keep size down to 70GiB. minute => '0', hour => '*', - command => 'flock -n /var/run/htcacheclean.lock htcacheclean -n -p /var/cache/apache2/proxy -t -l 51200M > /dev/null', + command => 'flock -n /var/run/htcacheclean.lock htcacheclean -n -p /var/cache/apache2/proxy -t -l 70200M > /dev/null', environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin', require => [ File['/var/cache/apache2/proxy'],