HAProxy Enterprise Documentation 1.8r2

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 /var/run/hapee-1.8/hapee-lb.sock stdio

See also


Next up

Lua scripts