Merge "Increase per-region caching proxy capacity"
This commit is contained in:
@@ -293,10 +293,10 @@ class openstack_project::mirror (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { 'apache-cache-cleanup':
|
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',
|
minute => '0',
|
||||||
hour => '*',
|
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',
|
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
require => [
|
require => [
|
||||||
File['/var/cache/apache2/proxy'],
|
File['/var/cache/apache2/proxy'],
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ NameVirtualHost <%= @vhost_name %>:8081
|
|||||||
CacheLock on
|
CacheLock on
|
||||||
CacheLockPath "/tmp/mod_cache-lock"
|
CacheLockPath "/tmp/mod_cache-lock"
|
||||||
CacheLockMaxAge 5
|
CacheLockMaxAge 5
|
||||||
# 100MB
|
# 5GiB
|
||||||
CacheMaxFileSize 104857600
|
CacheMaxFileSize 5368709120
|
||||||
|
|
||||||
# Per site caching reverse proxy rules
|
# Per site caching reverse proxy rules
|
||||||
# Only cache specific backends, rely on afs cache otherwise.
|
# Only cache specific backends, rely on afs cache otherwise.
|
||||||
@@ -157,8 +157,8 @@ NameVirtualHost <%= @vhost_name %>:8081
|
|||||||
CacheLock on
|
CacheLock on
|
||||||
CacheLockPath "/tmp/mod_cache-lock"
|
CacheLockPath "/tmp/mod_cache-lock"
|
||||||
CacheLockMaxAge 5
|
CacheLockMaxAge 5
|
||||||
# 100MB
|
# 5GiB
|
||||||
CacheMaxFileSize 104857600
|
CacheMaxFileSize 5368709120
|
||||||
# Ignore expire headers as the urls use sha256 hashes.
|
# Ignore expire headers as the urls use sha256 hashes.
|
||||||
CacheIgnoreQueryString On
|
CacheIgnoreQueryString On
|
||||||
CacheStoreExpired On
|
CacheStoreExpired On
|
||||||
|
|||||||
Reference in New Issue
Block a user