Increase per-region caching proxy capacity
We want to start caching Kolla registry tarballs, but these presently range upward of 4GiB each and need around 50GiB of aggregate cache space. As a result, we'll increase the max cached file size from 100MiB to 5GiB and the max cache content from 2GiB to 80GiB to support this. Change-Id: Ic6e4ae6b44f134bce8a8873f6e4d4517f9d30e14
This commit is contained in:
parent
3c2d741e8b
commit
60524e49d8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user