Fix haproxy configuration to work by default with Patroni.

This commit is contained in:
Oleksii Kliukin
2015-11-01 15:29:45 +03:00
parent 7784f7db3d
commit 87ead9ddaf
+4 -3
View File
@@ -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