5fa31b09da
By default our apache mod mem cache tuneables are too conservative to cache the zuul status.json. Bump the numbers to something reasonable for the status.json file. This means increasing the total cache size and the max object/stream sizes. Change-Id: Icf6ad2591e67d5916efbd65ddf93379d2c3ffc69
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
<VirtualHost <%= scope.lookupvar("::zuul::vhost_name") %>:80>
|
|
ServerAdmin <%= scope.lookupvar("::zuul::serveradmin") %>
|
|
DocumentRoot /var/lib/zuul/www
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-access.log combined
|
|
|
|
RewriteEngine on
|
|
RewriteRule ^/status.json$ http://127.0.0.1:8001/status.json [P]
|
|
|
|
AddOutputFilterByType DEFLATE application/json
|
|
|
|
Alias /rechecks.html /var/www/recheckwatch/rechecks.html
|
|
Alias /rechecks /var/www/recheckwatch/rechecks.html
|
|
|
|
SetEnv GIT_PROJECT_ROOT /var/lib/zuul/git/
|
|
SetEnv GIT_HTTP_EXPORT_ALL
|
|
|
|
AliasMatch ^/p/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/lib/zuul/git/$1
|
|
AliasMatch ^/p/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/lib/zuul/git/$1
|
|
ScriptAlias /p/ /usr/lib/git-core/git-http-backend/
|
|
|
|
<IfModule mod_cache.c>
|
|
CacheDefaultExpire 5
|
|
<IfModule mod_mem_cache.c>
|
|
CacheEnable mem /status.json
|
|
# 12MByte total cache size.
|
|
MCacheSize 12288
|
|
MCacheMaxObjectCount 10
|
|
MCacheMinObjectSize 1
|
|
# 8MByte max size per cache entry
|
|
MCacheMaxObjectSize 8388608
|
|
MCacheMaxStreamingBuffer 8388608
|
|
</IfModule>
|
|
</IfModule>
|
|
|
|
</VirtualHost>
|