|
|
|
|
|
by CyberDem0n
3354 days ago
|
|
Patroni has REST API providing a health-checks for load-balancers. patroni:8008/replica will respond with http status code 200 only if node is running as replica. In the HAProxy config file you just need to list all Patroni nodes, specify a health-check and it will do a load-balancing for you. The same approach works for example with AWS ELB. |
|