Merge "Increase per-region caching proxy capacity"

This commit is contained in:
Jenkins 2017-07-12 15:12:01 +00:00 committed by Gerrit Code Review
commit 0e8266e487
2 changed files with 6 additions and 6 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 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'],

View File

@ -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