Reference

disable frontend

Stop routing traffic to a frontend that is declared in your load balancer configuration file.

Description Jump to heading

Use the disable frontend command to stop routing traffic to a frontend.

Examples Jump to heading

  1. To disable this frontend:

    haproxy
    frontend www
    bind *:80
    default_backend servers
    backend servers
    server s1 192.168.50.20:80
    haproxy
    frontend www
    bind *:80
    default_backend servers
    backend servers
    server s1 192.168.50.20:80
  2. Run the disable frontend command with the name of the frontend:

    bash
    echo "disable frontend www" | \
    sudo socat stdio tcp4-connect:127.0.0.1:9999
    bash
    echo "disable frontend www" | \
    sudo socat stdio tcp4-connect:127.0.0.1:9999

The load balancer marks the frontend with status “STOP” on the stats 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