Just a small issue with the stick-table feature, with the following
example config:
listen L7vip 192.168.2.60:80
mode tcp
balance leastconn
stick-table type ip size 10240k expire 30m
stick on src
server rip1 192.168.2.26:80 weight 1 check inter 2000 rise 2 fall 3
server rip2 192.168.2.111:80 weight 1 check inter 2000 rise 2 fall 3
Works great, but if you put one of the bakend servers in maintenance
mode or set the weight to 0
echo "set weight L7vip/rip2 0" | socat unix-connect:/var/run/haproxy.stat stdio
echo "disable server L7vip/rip2 0" | socat
unix-connect:/var/run/haproxy.stat stdio
Nothing happens - Or rather the persistence template still takes
effect like option persist....
Setting weight=0 and soft restarting works but potentialy breaks all
the other entries in the persistence table? (or does it survive a soft
restart?)
Is it possible to do something like:
stick on <pattern> [table <table>] [{if | unless} <condition> "not in
maintenance mode..."
--
Regards,
Malcolm Turnbull.
Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/