From af620b0b9d2566792f54200d45df4b09a06a5be7 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 11 Aug 2017 14:29:14 -0400 Subject: [PATCH] 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 --- 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 fa16927d64..bb7315ff5a 100644 --- a/modules/openstack_project/manifests/mirror.pp +++ b/modules/openstack_project/manifests/mirror.pp @@ -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'],