From bf8d46ce7ffe24d65813b779f36f309c8f46542b Mon Sep 17 00:00:00 2001
From: Jason DeTiberus <jdetiber@redhat.com>
Date: Mon, 29 Feb 2016 16:02:38 -0500
Subject: Increase maxconn settings for haproxy lb

---
 roles/haproxy/templates/haproxy.cfg.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'roles/haproxy/templates')

diff --git a/roles/haproxy/templates/haproxy.cfg.j2 b/roles/haproxy/templates/haproxy.cfg.j2
index c932af72f..7ac44b23a 100644
--- a/roles/haproxy/templates/haproxy.cfg.j2
+++ b/roles/haproxy/templates/haproxy.cfg.j2
@@ -3,7 +3,7 @@
 global
     chroot      /var/lib/haproxy
     pidfile     /var/run/haproxy.pid
-    maxconn     4000
+    maxconn     {{ haproxy_global_maxconn | default('4000') }}
     user        haproxy
     group       haproxy
     daemon
@@ -31,7 +31,7 @@ defaults
     timeout server          300s
     timeout http-keep-alive 10s
     timeout check           10s
-    maxconn                 3000
+    maxconn                 {{ haproxy_default_maxconn | default('3000') }}
 
 listen stats :9000
     mode http
-- 
cgit v1.2.3


From 72f35852a044a8d2517d4c6ed72887e155dac524 Mon Sep 17 00:00:00 2001
From: Jason DeTiberus <jdetiber@redhat.com>
Date: Tue, 1 Mar 2016 16:44:09 -0500
Subject: disable http-server-close option

---
 roles/haproxy/templates/haproxy.cfg.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'roles/haproxy/templates')

diff --git a/roles/haproxy/templates/haproxy.cfg.j2 b/roles/haproxy/templates/haproxy.cfg.j2
index 7ac44b23a..cb4380971 100644
--- a/roles/haproxy/templates/haproxy.cfg.j2
+++ b/roles/haproxy/templates/haproxy.cfg.j2
@@ -20,7 +20,7 @@ defaults
     log                     global
     option                  httplog
     option                  dontlognull
-    option http-server-close
+#    option http-server-close
     option forwardfor       except 127.0.0.0/8
     option                  redispatch
     retries                 3
-- 
cgit v1.2.3