We are working with HAProxy 1.5dev7 and using stick tables for persistence.

Connect with several clients to populate the contents of the table.

We were trying to drop the contents of the stick table using the command -

echo "clear table VIP_Name" | socat unix-connect:/var/run/haproxy.stat stdio

It appears that instead of removing all entries as the manual suggests
" In the case where no options arguments are given all entries will be
removed." it appears to only be removing 1 entry at a time.

My Configuration -

# HAProxy configuration file generated by loadbalancer.org appliance
global
        daemon
        stats socket /var/run/haproxy.stat mode 600 level admin
        pidfile /var/run/haproxy.pid
        maxconn 40000
        ulimit-n 81000
defaults
        mode http
        balance roundrobin
        timeout connect 4000
        timeout client 42000
        timeout server 43000
listen VIP_Name
        bind 192.100.1.2:80
        mode tcp
        balance leastconn
        server backup 127.0.0.1:9081 backup  non-stick
        stick-table type ip size 10240k expire 30m
        stick on src
        option redispatch
        option abortonclose
        maxconn 40000
        server RIP_Name 192.168.66.50  weight 1  check port 80  inter
2000  rise 2  fall 3 minconn 0  maxconn 0 on-marked-down
shutdown-sessions
        server RIP_Name-1 192.168.66.51:80  weight 1  check   inter
2000  rise 2  fall 3 minconn 0  maxconn 0 on-marked-down
shutdown-sessions
listen stats :7777
        stats enable
        stats uri /
        option httpclose
        stats auth loadbalancer:loadbalancer

Mark

Reply via email to