File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,10 +169,18 @@ haproxy:
169169 - :25432
170170 mode: tcp
171171 balance: roundrobin
172+ options:
173+ - tcplog
174+ - httpchk
175+ httpcheck:
176+ - connect default ssl
177+ - send meth GET uri / ver HTTP/1.1 hdr Host localhost hdr User-Agent haproxy/patroni-clustercheck hdr Accept */*
178+ - expect status 200-399
172179 timeouts:
173180 connect: 10s
174181 client: 3600s
175182 server: 3600s
183+ defaultserver: check maxconn 1000 port 8008 inter 2000 rise 3 fall 3 crt /etc/step/certs/generic.user.full.pem ca-file /usr/share/pki/trust/anchors/step-ca-ibs.crt.pem on-marked-down shutdown-sessions
176184 servers:
177185 # for each node matching the target it will count up the loop index and append that to the server name
178186 postgresql:
@@ -185,8 +193,7 @@ haproxy:
185193 # optionally set backup for all nodes with weight < mine_max_weight - only makes sense in combination with enabling mine_scale_weight
186194 mine_setbackup: true
187195 port: 5432
188- maxconn: 100
189- check: "check port 8008 inter 2000 rise 3 fall 3"
196+
190197 frontends:
191198 frontend1:
192199 name: www-http
You can’t perform that action at this time.
0 commit comments