diff --git a/modules/openstack_project/manifests/mirror.pp b/modules/openstack_project/manifests/mirror.pp index d79d492abc..2f55504231 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 2GB. + # Clean apache cache once an hour, keep size down to 80GiB. minute => '0', hour => '*', - command => 'htcacheclean -n -p /var/cache/apache2/proxy -t -l 2048M > /dev/null', + command => 'htcacheclean -n -p /var/cache/apache2/proxy -t -l 81920M > /dev/null', environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin', require => [ File['/var/cache/apache2/proxy'], diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index 1d8ca6a14a..f2caa54782 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -119,8 +119,8 @@ NameVirtualHost <%= @vhost_name %>:8081 CacheLock on CacheLockPath "/tmp/mod_cache-lock" CacheLockMaxAge 5 - # 100MB - CacheMaxFileSize 104857600 + # 5GiB + CacheMaxFileSize 5368709120 # Per site caching reverse proxy rules # Only cache specific backends, rely on afs cache otherwise. @@ -157,8 +157,8 @@ NameVirtualHost <%= @vhost_name %>:8081 CacheLock on CacheLockPath "/tmp/mod_cache-lock" CacheLockMaxAge 5 - # 100MB - CacheMaxFileSize 104857600 + # 5GiB + CacheMaxFileSize 5368709120 # Ignore expire headers as the urls use sha256 hashes. CacheIgnoreQueryString On CacheStoreExpired On