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:
Alexandr K. 2025-10-22 11:12:13 +03:00 committed by GitHub
parent 93545cfbc8
commit 952837766d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'