From ce8d1e9b7bf929a3929f14ab6c6df3b9c8989bc3 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 27 Jan 2015 18:37:51 +0000 Subject: [PATCH] Bump maxconns to 5000 and disable keepalive for geoip and mirrorlist --- .../geoip-city-wsgi/proxy/templates/geoip-city-wsgi-proxy.conf | 2 ++ roles/haproxy/files/haproxy.cfg | 2 +- roles/haproxy/files/haproxy.cfg.stg | 2 +- roles/mirrormanager/mirrorlist/templates/mirrorlist-server.conf | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/geoip-city-wsgi/proxy/templates/geoip-city-wsgi-proxy.conf b/roles/geoip-city-wsgi/proxy/templates/geoip-city-wsgi-proxy.conf index a47a72eefc..5d39348602 100644 --- a/roles/geoip-city-wsgi/proxy/templates/geoip-city-wsgi-proxy.conf +++ b/roles/geoip-city-wsgi/proxy/templates/geoip-city-wsgi-proxy.conf @@ -1,3 +1,5 @@ +KeepAlive off + RewriteEngine On RewriteRule ^/city(.*) {{proxyurl}}/city$1 [P,L] diff --git a/roles/haproxy/files/haproxy.cfg b/roles/haproxy/files/haproxy.cfg index cd4bfde437..6d08e3fc26 100644 --- a/roles/haproxy/files/haproxy.cfg +++ b/roles/haproxy/files/haproxy.cfg @@ -21,7 +21,7 @@ defaults option httpclose option redispatch retries 3 - maxconn 2000 + maxconn 5000 timeout connect 5s timeout client 500s timeout server 500s diff --git a/roles/haproxy/files/haproxy.cfg.stg b/roles/haproxy/files/haproxy.cfg.stg index a083f416d0..b4ebddeb2b 100644 --- a/roles/haproxy/files/haproxy.cfg.stg +++ b/roles/haproxy/files/haproxy.cfg.stg @@ -21,7 +21,7 @@ defaults option httpclose option redispatch retries 3 - maxconn 2000 + maxconn 5000 timeout connect 5s timeout client 500s timeout server 500s diff --git a/roles/mirrormanager/mirrorlist/templates/mirrorlist-server.conf b/roles/mirrormanager/mirrorlist/templates/mirrorlist-server.conf index 97ea738ff6..635c4c9ede 100644 --- a/roles/mirrormanager/mirrorlist/templates/mirrorlist-server.conf +++ b/roles/mirrormanager/mirrorlist/templates/mirrorlist-server.conf @@ -1,3 +1,5 @@ +KeepAlive off + Alias /mirrorlists /var/lib/mirrormanager/mirrorlists/ Alias /publiclist /var/lib/mirrormanager/mirrorlists/publiclist/ Alias /static /var/lib/mirrormanager/mirrorlists/static/