Merge "Increase per-region caching proxy capacity"
This commit is contained in:
commit
0e8266e487
@ -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'],
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user