Reference

shutdown sessions server

Terminology change

  • As of HAProxy 2.9 and HAProxy Enterprise 2.9r1, sessions are replaced with streams.

Terminate all client streams that are connected to a specific server.

Description Jump to heading

Use shutdown sessions server to stop all streams, formerly called sessions, connected to a particular server. You might use this to end long-running streams after putting a server into maintenance mode.

Examples Jump to heading

Below, we stop all streams associated with the server server1 in the backend websocket:

nix
echo "shutdown sessions server websocket/server1" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
echo "shutdown sessions server websocket/server1" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?