Skip to content
Snippets Groups Projects
Commit 6ea9ed05 authored by Baptiste DE RENZO's avatar Baptiste DE RENZO
Browse files

Add haproxy stat page and update maxconn values, Refs #39996

parent a81efd6b
No related branches found
No related tags found
No related merge requests found
# 2024-08-12
* Add HAProxy stats page listening on localhost on frontend servers for HA deployment
* Update HAProxy maxconn value for HA deployment
# 2024-07-09 # 2024-07-09
* Remove `admin` and `ubicast` system user shell password definition in the `system/user` role. * Remove `admin` and `ubicast` system user shell password definition in the `system/user` role.
......
...@@ -7,6 +7,7 @@ global ...@@ -7,6 +7,7 @@ global
user haproxy user haproxy
group haproxy group haproxy
daemon daemon
maxconn 2000
defaults defaults
log global log global
...@@ -23,12 +24,19 @@ defaults ...@@ -23,12 +24,19 @@ defaults
option clitcpka option clitcpka
option srvtcpka option srvtcpka
frontend stats
mode http
bind 127.0.0.1:8404
stats enable
stats uri /stats
stats refresh 10s
listen pgsql-primary listen pgsql-primary
bind 127.0.0.1:54321 bind 127.0.0.1:54321
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
option tcp-check option tcp-check
tcp-check expect string primary tcp-check expect string primary
maxconn 500 maxconn 1000
server {{ groups['postgres'][0] }} {{ hostvars[groups['postgres'][0]]['ansible_default_ipv4']['address'] }}:5432 maxconn 500 check port 8543 server {{ groups['postgres'][0] }} {{ hostvars[groups['postgres'][0]]['ansible_default_ipv4']['address'] }}:5432 maxconn 1000 check port 8543
server {{ groups['postgres'][1] }} {{ hostvars[groups['postgres'][1]]['ansible_default_ipv4']['address'] }}:5432 maxconn 500 check port 8543 backup server {{ groups['postgres'][1] }} {{ hostvars[groups['postgres'][1]]['ansible_default_ipv4']['address'] }}:5432 maxconn 1000 check port 8543 backup
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment