HAProxy Enterprise Documentation 2.2r1

disable agent

Stop sending health check probes to an agent program running on a server.

Description

This command prevents new health checks from initiating until the agent is enabled again.

This is useful when you need to reconfigure the weight of a server without having the agent override it.

You must have an external health check agent running with the agent-check parameter in the server directive in the configuration file.

Examples

  1. Use the command disable agent with the name of the server on which you want to stop health checks temporarily.

    $ echo "disable agent be_servers/server1" | \
       sudo socat stdio unix-connect:/var/run/hapee-2.2/hapee-lb.sock

See also


Next up

disable dynamic-cookie backend