HAProxy Enterprise Documentation 1.7r1

Enable/Disable Servers

Use the the Runtime API to change the state of your backend servers dynamically, including enabling and disabling them.

Change server state using the Runtime API

To manage the state of your servers using the Runtime API, follow these steps:

  1. Enable the Runtime API.

  2. Call the set server command to change a server's state.

In the example below, we change the server's state to maint (maintenance mode):

$ echo "set server webservers/s1 state maint" | sudo socat stdio /var/run/hapee-1.7/hapee-lb.sock

Next up

Git Integration