From 87ead9ddaf5220c79de48d7a1f66e8f6f58189fc Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Sun, 1 Nov 2015 15:29:45 +0300 Subject: [PATCH] Fix haproxy configuration to work by default with Patroni. --- haproxy.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/haproxy.cfg b/haproxy.cfg index c0a959d9..7c040355 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -15,7 +15,8 @@ frontend ft_postgresql default_backend bk_db backend bk_db - option httpchk GET + option httpchk GET /master + http-check expect string '"master"' - server postgresql_127.0.0.1_5432 127.0.0.1:5432 maxconn 100 check port 8008 - server postgresql_127.0.0.1_5433 127.0.0.1:5433 maxconn 100 check port 8009 + server postgresql_127.0.0.1_5432 127.0.0.1:5432 maxconn 100 check port 8008 + server postgresql_127.0.0.1_5433 127.0.0.1:5433 maxconn 100 check port 8009