From 14d68a4b22dd016584901e2eda79f24c2ad3f6cd Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 13 Feb 2017 16:00:22 +0000 Subject: [PATCH] Let's try keepalive Signed-off-by: Patrick Uiterwijk --- roles/httpd/proxy/templates/01-keepalives.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/httpd/proxy/templates/01-keepalives.conf b/roles/httpd/proxy/templates/01-keepalives.conf index d0a5a228ac..379dc99c89 100644 --- a/roles/httpd/proxy/templates/01-keepalives.conf +++ b/roles/httpd/proxy/templates/01-keepalives.conf @@ -1,3 +1,7 @@ +{% if env == "production" %} # These are necessary because haproxy does not support keepalive. SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 +{% else %} +# This is supposedly now supported in haproxy. Let's try it out in staging +{% endif %}