Make apache cache structure saner

Previously we had 5 levels of dirs 3 character names long. This results
in 64 ** 3 dirents possible per dir level which is a ton of dirs. Reduce
it to 2 character names which is 64 ** 2 = 4096 and much more
reasonable. We don't increase the depth becaues this should still
provide more than enough caching ability as is.

Change-Id: Ic498aff57f8cbba679fd1ce4ec4569926bf7655f
This commit is contained in:
Clark Boylan 2017-08-11 11:34:45 -07:00
parent a374422b27
commit 2ff79bce51

View File

@ -112,7 +112,7 @@ NameVirtualHost <%= @vhost_name %>:8081
# General cache rules
CacheRoot "/var/cache/apache2/proxy"
CacheDirLevels 5
CacheDirLength 3
CacheDirLength 2
# SSL support
SSLProxyEngine on
# Prevent thundering herds.
@ -197,7 +197,7 @@ NameVirtualHost <%= @vhost_name %>:8081
# General cache rules
CacheRoot "/var/cache/apache2/proxy"
CacheDirLevels 5
CacheDirLength 3
CacheDirLength 2
# SSL support
SSLProxyEngine on
# Prevent thundering herds.