Merge pull request #27 from damjanek/master
Default timeout for mysql and rabbit is too large
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index 90099ce..7aae743 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -73,8 +73,8 @@
balance {{ listen.get('balance', 'roundrobin') }}
mode tcp
option tcpka
- timeout client 48h
- timeout server 48h
+ timeout client 300s
+ timeout server 300s
{%- elif listen.get('type', None) == 'mysql' %}
balance leastconn
mode tcp
@@ -82,8 +82,8 @@
option tcplog
option clitcpka
option srvtcpka
- timeout client 28801s
- timeout server 28801s
+ timeout client 300s
+ timeout server 300s
option mysql-check user haproxy
{%- elif listen.get('type', None) == 'pgsql' %}
balance leastconn