Reduce htcacheclean to 50GB

Right now rax-ord is are busiest mirror, however it appears to be on a
slow cinder volue.  Right now, our proxy cache is full, because we don't
have enough buffer between min / max.

Change-Id: I07117808e47fec5b7dd9ab385ace9dc1f3abe261
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-11 14:29:14 -04:00
parent a374422b27
commit af620b0b9d
1 changed files with 2 additions and 2 deletions

View File

@ -293,10 +293,10 @@ class openstack_project::mirror (
}
cron { 'apache-cache-cleanup':
# Clean apache cache once an hour, keep size down to 80GiB.
# Clean apache cache once an hour, keep size down to 50GiB.
minute => '0',
hour => '*',
command => 'flock -n /var/run/htcacheclean.lock htcacheclean -n -p /var/cache/apache2/proxy -t -l 81920M > /dev/null',
command => 'flock -n /var/run/htcacheclean.lock htcacheclean -n -p /var/cache/apache2/proxy -t -l 51200M > /dev/null',
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
require => [
File['/var/cache/apache2/proxy'],