mirror of
https://github.com/optim-enterprises-bv/patroni.git
synced 2025-11-01 10:57:55 +00:00
* Use more readable 'listen' section * Explicitely defined check options * Enable stats dashboard * Close HAProxy connections to a backend server when it's marked as down.
26 lines
560 B
INI
26 lines
560 B
INI
global
|
|
maxconn 100
|
|
|
|
defaults
|
|
log global
|
|
mode tcp
|
|
retries 2
|
|
timeout client 30m
|
|
timeout connect 4s
|
|
timeout server 30m
|
|
timeout check 5s
|
|
|
|
listen stats
|
|
mode http
|
|
bind *:7000
|
|
stats enable
|
|
stats uri /
|
|
|
|
listen batman
|
|
bind *:5000
|
|
option httpchk
|
|
http-check expect status 200
|
|
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
|
|
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
|