]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy: implement publish/unpublish backend CLI
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 Jan 2026 10:04:18 +0000 (11:04 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 15 Jan 2026 08:08:18 +0000 (09:08 +0100)
commit797ec6ede5b32abf232c36adbb91cfc1f2ccd820
tree75dab8c621bdae331f52b67d1b4cbb0a80b7d720
parent21fb0a3f58a9835a184a02669134a0adf42b2298
MEDIUM: proxy: implement publish/unpublish backend CLI

Define a new set of CLI commands publish/unpublish backend <be>. The
objective is to be able to change the status of a backend to
unpublished. Such a backend is considered ineligible to traffic : this
allows to skip use_backend rules which target it.

Note that contrary to disabled/stopped proxies, an unpublished backend
still has server checks running on it.

Internally, a new proxy flags PR_FL_BE_UNPUBLISHED is defined. CLI
commands handler "publish backend" and "unpublish backend" are executed
under thread isolation. This guarantees that the flag can safely be set
or remove in the CLI handlers, and read during content-switching
processing.
doc/configuration.txt
doc/management.txt
include/haproxy/backend.h
include/haproxy/proxy-t.h
reg-tests/stream/test_content_switching.vtc
src/proxy.c