February 2020
Intermediate to advanced
734 pages
38h 13m
English
For this recipe, we will need atleast three PostgreSQL servers. As usual, we'll assume they are named pgha1, pgha2, and pgha3. In addition, assume that the IP address of pgha1 is 10.0.30.1. Follow these steps on all three servers except where indicated:
global
maxconn 100
defaults
log global
mode tcp
retries 2
timeout client 30m
timeout connect 4s
timeout server 30m
timeout check 5s
frontend ft_postgresql
bind *:5000
default_backend bk_db
backend bk_db
option httpchk
server postgresql_pg1 pgha1:5432 check port 8008
server postgresql_pg2 pgha2:5432 check port 8008
server postgresql_pg3 pgha3:5432 check port 8008
Read now
Unlock full access