]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cli: add check-addr command
authorWilliam Dauchy <wdauchy@gmail.com>
Thu, 11 Feb 2021 21:51:23 +0000 (22:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Feb 2021 15:04:52 +0000 (16:04 +0100)
commitb456e1f38919191aaa452b99881278ff83c53348
tree6e8514dc7d04496a98d5ae96b2a635a5510f9229
parent4d838c4c3c83af26e8a241a3d8248b6126273ee6
MEDIUM: cli: add check-addr command

this patch allows to set server health check address at runtime. In
order to align with `addr` command, also allow to set port optionnaly.
This led to a small refactor in order to use the same function for both
`check-addr` and `check-port` commands.
for `check-port`, we however don't permit the change anymore if checks
are not enabled on the server.

This command becomes more and more useful for people having a consul
like architecture:
- the backend server is located on a container with its own IP
- the health checks are done the consul instance located on the host
  with the host IP

Signed-off-by: William Dauchy <wdauchy@gmail.com>
doc/management.txt
src/server.c