system-config/playbooks/roles/zuul-web/files/apache-htcacheclean.default
Clark Boylan 608f56ab82 Configure htcacheclean for zuul-web
We are starting to use the apache2 mod_cache_disk functionality more now
and during use the cache has grown into the 1.5GB range. The
htcacheclean process is cleaning up every 2 hours which is how it is
getting behind with its limit of 300MB. Reduce the interval to 15
minutes by supplying an /etc/default/apache-htcacheclean config.

Note we cache status.json files which are only valid for a very short
period of time. This likely explains the quick growth of the cache.

Change-Id: Iff00fb1806796ef6db26e53e026c533c47a902b4
2020-04-30 16:23:51 -07:00

23 lines
555 B
Plaintext

# This file must only contain KEY=VALUE lines. Do not use advanced
# shell script constructs!
## run mode: cron, daemon
## run in daemon mode or as daily cron job
## default: daemon
HTCACHECLEAN_MODE=daemon
## cache size
HTCACHECLEAN_SIZE=300M
## interval: if in daemon mode, clean cache every x minutes
HTCACHECLEAN_DAEMON_INTERVAL=15
## path to cache
## must be the same as in CacheRoot directive
#HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk
## additional options:
## -n : be nice
## -t : remove empty directories
HTCACHECLEAN_OPTIONS="-n"