mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-11-29 00:33:02 +00:00
* Описана инфрастуктура кластера * Добавлена роль etcd * Добавлена роль haproxy * Добавлена роль keepalived * Добавлена роль ntp_install * Добавлена роль patroni * Добавлена групповые переменные --------- Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
37 lines
1.0 KiB
Django/Jinja
37 lines
1.0 KiB
Django/Jinja
global
|
|
maxconn 100
|
|
|
|
defaults
|
|
log global
|
|
mode tcp
|
|
retries 2
|
|
timeout client 30m
|
|
timeout connect 4s
|
|
timeout server 30m
|
|
timeout check 5s
|
|
|
|
listen stats
|
|
mode http
|
|
bind *:7000
|
|
stats enable
|
|
stats uri /
|
|
|
|
listen patroni-postgresql-primary
|
|
bind *:5000
|
|
option httpchk OPTIONS /master
|
|
http-check expect status 200
|
|
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
|
|
server 10.0.75.111 10.0.75.111:5432 maxconn 100 check port 8008
|
|
server 10.0.75.112 10.0.75.112:5432 maxconn 100 check port 8008
|
|
server 10.0.75.113 10.0.75.113:5432 maxconn 100 check port 8008
|
|
|
|
listen patroni-postgresql-standbys
|
|
balance roundrobin
|
|
bind *:5001
|
|
option httpchk OPTIONS /replica
|
|
http-check expect status 200
|
|
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
|
|
server 10.0.75.111 10.0.75.111:5432 maxconn 100 check port 8008
|
|
server 10.0.75.112 10.0.75.112:5432 maxconn 100 check port 8008
|
|
server 10.0.75.113 10.0.75.113:5432 maxconn 100 check port 8008
|