Set mysql timeouts to 28810 seconds by default
Related-Prod: PROD-36221
Change-Id: I20265a38d8d46efaab3bb45db277ffe1c9bc2a13
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index 4600c4a..afa0f1a 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -118,8 +118,8 @@
option tcplog
option clitcpka
option srvtcpka
- timeout client 300s
- timeout server 300s
+ timeout client {{ checktimeout(proxy.get('timeout', {}).get('client', '28810')) }}
+ timeout server {{ checktimeout(proxy.get('timeout', {}).get('server', '28810')) }}
{%- if listen.get('health-check', {}).get('mysql', {}).get('enabled', True) %}
# option conflict's with port check of clustercheck script, if enabled haproxy reports invalid reponse
option mysql-check user haproxy