summaryrefslogtreecommitdiffstats
path: root/roles/haproxy
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-03-03 08:34:04 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-03-03 08:34:04 -0500
commita8edeaea8e8c67f5f930b54ccda5b575340231f5 (patch)
tree19de0a44a2a0dedb5e7528b9367441daaceb7e75 /roles/haproxy
parentfe320d7e67f88b214d34bfb958cabfe08dd294ca (diff)
parent72f35852a044a8d2517d4c6ed72887e155dac524 (diff)
downloadopenshift-a8edeaea8e8c67f5f930b54ccda5b575340231f5.tar.gz
openshift-a8edeaea8e8c67f5f930b54ccda5b575340231f5.tar.bz2
openshift-a8edeaea8e8c67f5f930b54ccda5b575340231f5.tar.xz
openshift-a8edeaea8e8c67f5f930b54ccda5b575340231f5.zip
Merge pull request #1524 from detiber/haproxy_tuning
Increase maxconn settings for haproxy lb
Diffstat (limited to 'roles/haproxy')
-rw-r--r--roles/haproxy/templates/haproxy.cfg.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg.j2 b/roles/haproxy/templates/haproxy.cfg.j2
index c932af72f..cb4380971 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
@@ -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
@@ -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