HAProxy Enterprise Documentation 2.2r1
shutdown sessions server
Terminate all client sessions that are connected to a specific server.
shutdown sessions server to stop all sessions connected to a particular server. You might use this to end long-running sessions after putting a server into maintenance mode.
Below, we stop all sessions associated with the server server1 in the backend websocket:
$ echo "shutdown sessions server websocket/server1" | \ sudo socat stdio unix-connect:/var/run/hapee-2.2/hapee-lb.sock