]> git.kaiwu.me - haproxy.git/commit
MEDIUM: server: implement "purge all servers" CLI
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 21 Sep 2026 15:45:26 +0000 (17:45 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2026 09:33:40 +0000 (11:33 +0200)
commitd4d8a762a0fd994a2244e960e0988f4a70036187
tree16d5f46768b976aed21c7f39716beed640ec57e3
parent2d985fbf0b3b192c63c0925bec33d96cf141a994
MEDIUM: server: implement "purge all servers" CLI

Implement a new CLI command "purge all servers <be>". It tries to delete
every server present in a backend or if not possible flag them for
background deletion. If the deletion is impossible due to a specific
configuration of the server, the instance is skipped and the following
entries are handled.

At the end of the iteration, a summary is displayed on the CLI with the
number of servers deleted, flagged and skipped. If at least one server
is flagged for background deletion, proxy purge task is scheduled.

The command runs via a parser and a handler. While it is not strictly
necessary currently, this will serve as a skeleton to implement
yielding.
doc/management.txt
src/server.c