February 2020
Intermediate to advanced
734 pages
38h 13m
English
Assuming pgha-proxy is the proxy server, and pgha1 and pgha2 are the BDR nodes, follow these steps to make HAProxy more compatible with BDR:
global
stats socket /var/run/haproxy/sock level admin
backend bk_db
option pgsql-check user haproxy_check
stick-table type ip size 1
stick on dst
server bdr_chicago pgha1:5432 check
server bdr_tokyo pgha2:5432 backup check
sudo systemctl reload haproxy
Read now
Unlock full access