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
This commit is contained in:
Clark Boylan 2018-06-14 11:21:31 -07:00
parent 7a68034f5d
commit 8fa6a57462
1 changed files with 2 additions and 2 deletions

View File

@ -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'],