Enable health checking for HAProxy backend servers
- Updated HAProxy configuration templates to include `check` for `srv_stats` and `srv_dashboard` backends. - Adjusted expected test case outputs to account for the added health check settings.
This commit is contained in:
parent
7e3134155a
commit
4dda1ed631
9 changed files with 15 additions and 15 deletions
File diff suppressed because one or more lines are too long
BIN
docs/dashboard.png
Normal file
BIN
docs/dashboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
|
|
@ -90,7 +90,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:{{ data_stats["port"] | default(1936) }}
|
||||
server Local 127.0.0.1:{{ data_stats["port"] | default(1936) }} check
|
||||
|
||||
frontend dashboard
|
||||
bind *:{{ (data_stats["port"] | default(1936) | int) + 10000 }}
|
||||
|
|
@ -104,7 +104,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:{{ dashboard_server_port }}
|
||||
server Local 127.0.0.1:{{ dashboard_server_port }} check
|
||||
{% endif %}
|
||||
{% for o in data["easymapping"] -%}
|
||||
{% set mode = o["mode"] or "http" %}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:1936
|
||||
server Local 127.0.0.1:1936 check
|
||||
|
||||
frontend dashboard
|
||||
bind *:11936
|
||||
|
|
@ -49,7 +49,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:9190
|
||||
server Local 127.0.0.1:9190 check
|
||||
|
||||
frontend http_in_443
|
||||
bind *:443 ssl crt /etc/easyhaproxy/certs/certbot/ alpn h2,http/1.1 crt /etc/easyhaproxy/certs/haproxy/ alpn h2,http/1.1
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:1936
|
||||
server Local 127.0.0.1:1936 check
|
||||
|
||||
frontend dashboard
|
||||
bind *:11936
|
||||
|
|
@ -57,7 +57,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:9190
|
||||
server Local 127.0.0.1:9190 check
|
||||
|
||||
frontend http_in_80
|
||||
bind *:80
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:1937
|
||||
server Local 127.0.0.1:1937 check
|
||||
|
||||
frontend dashboard
|
||||
bind *:11937
|
||||
|
|
@ -57,7 +57,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:9190
|
||||
server Local 127.0.0.1:9190 check
|
||||
|
||||
frontend http_in_19901
|
||||
bind *:19901
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:1936
|
||||
server Local 127.0.0.1:1936 check
|
||||
|
||||
frontend dashboard
|
||||
bind *:11936
|
||||
|
|
@ -47,7 +47,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:9190
|
||||
server Local 127.0.0.1:9190 check
|
||||
|
||||
backend certbot_backend
|
||||
mode http
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:1936
|
||||
server Local 127.0.0.1:1936 check
|
||||
|
||||
frontend dashboard
|
||||
bind *:11936
|
||||
|
|
@ -64,7 +64,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:9190
|
||||
server Local 127.0.0.1:9190 check
|
||||
|
||||
frontend http_in_80
|
||||
bind *:80
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ frontend stats
|
|||
|
||||
backend srv_stats
|
||||
mode http
|
||||
server Local 127.0.0.1:1936
|
||||
server Local 127.0.0.1:1936 check
|
||||
|
||||
frontend dashboard
|
||||
bind *:11936
|
||||
|
|
@ -57,7 +57,7 @@ frontend dashboard
|
|||
|
||||
backend srv_dashboard
|
||||
mode http
|
||||
server Local 127.0.0.1:9190
|
||||
server Local 127.0.0.1:9190 check
|
||||
|
||||
frontend http_in_443
|
||||
bind *:443 ssl crt /etc/easyhaproxy/certs/certbot/ alpn h2,http/1.1 crt /etc/easyhaproxy/certs/haproxy/ alpn h2,http/1.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue