HAProxy Enterprise Documentation 2.5r1

del server

Remove a dynamic server from a backend.


Remove a dynamic server attached to a backend. This operation is valid only for dynamic servers, those added using the Runtime API add server command.

All servers are eligible, except servers which are referenced by other configuration elements. The server must be put in maintenance mode prior to its deletion. The operation is cancelled if the server still has active or idle connections or its connection queue is not empty.


Below, we delete the server server2 from backend be_test.

First place the server in maintenance mode. As an alternative to the set server command, you could use the disable server command.

$ echo "set server be_test/server2 state maint" | \
   sudo socat stdio unix-connect:/var/run/hapee-2.5/hapee-lb.sock

Delete the server.

$ echo "experimental-mode on; del server be_test/server2" | \
   sudo socat stdio unix-connect:/var/run/hapee-2.5/hapee-lb.sock

See also

Next up

del ssl ca-file