Hi Everybody,
I'm tying to make backup servers not enter the persistence table, but as yet
, I have had no success
I was thinking that I could stop a server being entered in to the persistent
table like this:
r...@vm11:/etc/haproxy# cat haproxy.cfg
global
#uid 99
#gid 99
daemon
stats socket /var/run/haproxy.stat mode 600 level admin
log 127.0.0.1 local4
maxconn 40000
ulimit-n 81001
pidfile /var/run/haproxy.pid
defaults
log global
mode http
contimeout 4000
clitimeout 120000
srvtimeout 120000
balance roundrobin
listen stats :7777
stats enable
stats uri /
stats hide-version
option httpclose
frontend F1
bind 192.168.35.201:80
default_backend B1
mode tcp
backend B1
acl no_persist_backup dst 192.168.30.47
mode tcp
option persist
stick-table type ip size 10240k expire 30m
tick on src unless no_persist_backup
stick on src if !localhost
balance leastconn
server R1 192.168.30.201:80 weight 1 check port 80 inter 2000 rise 2
fall 3
server R2 192.168.30.202:80 weight 1 check port 80 inter 2000 rise 2
fall 3
server backup 192.168.30.47:80 backup
option redispatch
option abortonclose
but alas , my efforts seem in vain. I am doing something wrong ?
many regards
john