Reference

disable server

Put a server in maintenance mode.

Description Jump to heading

This command marks the server as “DOWN” for maintenance. The load balancer stops sending checks to this server while it is in this state.

Examples Jump to heading

Use the command disable server with the name of the server that you want to disable.

bash
echo "disable server servers/server1" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999
bash
echo "disable server servers/server1" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999

The load balancer marks the server as “MAINT” on its statistics page.

See also Jump to heading

If this page was useful, please, Leave the feedback.

© 2023 HAProxy Technologies, LLC. All Rights Reserved
Manage Cookie Preferences