February 2020
Intermediate to advanced
734 pages
38h 13m
English
We will demonstrate this recipe by using three PostgreSQL servers and one server for HAProxy. We'll make these assumptions:
Follow these steps to configure HAProxy on the pgha-proxy server:
frontend ft_pg_ro
bind *:5500
default_backend bk_pg_ro
backend bk_pg_ro
balance leastconn
option pgsql-check user haproxy_check
server postgresql_pgha1 pgha1:5432 check
server postgresql_pgha2 pgha2:5432 check
server postgresql_pgha3 pgha3:5432 check
Read now
Unlock full access