mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 01:31:44 +02:00
haproxy: T7906: Probing of a port other than the one to which normal traffic is sent (#1697)
* haproxy: T7906: Probing of a port other than the one to which normal traffic is sent Add support for specifying a custom health check port for HAProxy backend servers. This allows health probes to target a dedicated endpoint - such as port 8080 - separate from normal traffic ports (e.g., 80 or 443). * Fix article usage --------- Co-authored-by: Daniil Baturin <daniil@baturin.org>
This commit is contained in:
parent
93545cfbc8
commit
952837766d
@ -157,6 +157,12 @@ Backend
|
||||
|
||||
Active health check backend server
|
||||
|
||||
.. cfgcmd:: set load-balancing haproxy backend <name> server
|
||||
<name> check port <port>
|
||||
|
||||
Set an alternative port number for health checks.
|
||||
Overrides the default server port used for TCP/HTTP checks.
|
||||
|
||||
.. cfgcmd:: set load-balancing haproxy backend <name> server
|
||||
<name> send-proxy
|
||||
|
||||
@ -494,5 +500,5 @@ This configuration enables HTTP health checks on backend servers.
|
||||
set load-balancing haproxy backend bk-01 server srv01 check
|
||||
set load-balancing haproxy backend bk-01 server srv02 address '192.0.2.12'
|
||||
set load-balancing haproxy backend bk-01 server srv02 port '8882'
|
||||
set load-balancing haproxy backend bk-01 server srv02 check
|
||||
set load-balancing haproxy backend bk-01 server srv02 check port '8892'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user