From d2c4f3d14ae01f782545b1c139e433de2d4bf472 Mon Sep 17 00:00:00 2001 From: Vladislav Belogrudov Date: Sun, 27 Nov 2016 13:50:39 +0300 Subject: [PATCH] Icrease haproxy timeouts for mysql connections Haproxy often breaks mysql connections that results in "MySQL server has gone away" or similar because of 1 minute timeouts. Instead the timeouts should be not less than mysql connections timeouts - in most cases set to 3600s by default by OpenStack projects. Change-Id: Ic364f6942cdc6c2f274a508ae548bf964b098da4 Closes-Bug: #1645098 --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index e2cd06cc6b..f5b3ba20db 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -638,6 +638,8 @@ defaults {% if enable_mariadb | bool %} listen mariadb mode tcp + timeout client 3600s + timeout server 3600s option tcplog option tcpka option mysql-check user haproxy post-41