[lvs-users] Remove a real server from a virtual service: monitor requests continue on real server removed

Lorenzo Cocchi l.cocchi at softecspa.it
Mon Jan 10 11:19:55 GMT 2011


Sorry for my English, I'm a new member.
I'm using "ldirectord" in my cluster environment.

When I comment (#) a RealServer in the file "cf" it is immediately
removed from the "virtual server table" but the service is still being
monitored: there are requests
"GET /foo.html HTTP/1.1 200 59 - libwww-perl/5.808"
in the logs of Apache

If I restart Apache, the RealServer is re-balanced!

I post my configurations:

===========================================
= Load Balancer =

OS:         Ubuntu 8.04 LTS
kernel:     2.6.24-28-generic	
ldirectord: 2.1.3-2

$ less /etc/ha.d/conf/cluster_foo.cf
------------------------------------
checktimeout=15
checkinterval=20
autoreload=yes
quiescent=no
fork=yes
logfile="/var/log/ldirectord-foo.log"

# HTTP
virtual=1.1.1.1:80
        real=1.1.1.2:80 gate 10
        real=1.1.1.3:80 gate 10
        real=1.1.1.4:80 gate 9
        real=1.1.1.5:80 gate 9
        fallback=127.0.0.1:80 gate
        service=http
        virtualhost="www.foo.example"
        request="/foo.html"
        receive="OK"
        scheduler=sed
        protocol=tcp
        checktype=negotiate
        persistent=1200
------------------------------------

sysctl.conf:

net.ipv4.ip_forward = 1
net.ipv4.vs.expire_quiescent_template = 1


= RealServer =

[root at foo01 ~]# ifconfig lo:0
lo:0      Link encap:Local Loopback
          inet addr:1.1.1.2  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

sysctl.conf:

net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.eth0.arp_announce = 2

===========================================

Many thanks!

-- 
Lorenzo Cocchi
Area Sistemi / Softec S.p.A.




More information about the lvs-users mailing list