LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ipvsadm testing delay

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: ipvsadm testing delay
From: sipieter nicolas <niko_2501@xxxxxxxxxxx>
Date: Fri, 21 Oct 2005 16:18:18 +0900 (JST)
hi there, i'm searching to make my LVS configuration more
responsive. when i'm performing tests i have some slow
down.
i'd like to ask about..

here's my config:
- 1 LVS server (centos 4.1)
- 2 backends (centos 4.1, running httpd)

# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1  ok

# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# iptables-save  ok

# /etc/init.d/iptables start  ok
# ipvsadm -A -t 192.168.123.1:80 -s wrr  
# ipvsadm -a -t 192.168.123.1:80 -r 192.168.0.2:80 -m
# ipvsadm -a -t 192.168.123.1:80 -r 192.168.0.3:80 -m


the whole thing is working. i'm pretty happy, but, here's
how i'm performing tests:

from another machine (not the LVS server nor the 2
backends)
i connect (via a browser )onto the LVS server which route
my to 1 of the two backends, so i can see my backends are
working.
i've put two diffrent index.html on the server to be able
to tell who is who.
so far so good, but then,
if i try to unplug physicaly one of my backend from the
hub,
and then i try to click "reload" on my client's browser, 
i'm not redirected immediatly to remaining backend.
the browser "loads and search for a certain amount of
time.
in fact i have to click "stop" button then "reload" again
to make it loading my remaining backend index.html page..
it's like if ipvsadm doesn't see one of my backend is
physicaly disconnected from the network, and still try  to
forward clients to that backend. 

my question basicaly is:
how can i make ipvsadm to see immediatly that one on the
backends is no longer accessible and thus stop to try to
forward client to that backend?

i would like the client to be redirected immediatly to the
available backends without having to wait or reload
(despite the fact there's only one backend left.)


surprisingly, if i inverse backends, i meant if i unplug
physicaly the other backend and then reconnect the
previously unplugged one, on the client side it's fast. no
delay. page is instantly displayed.

for resuming:

- disconnecting backend 1 = slow down on client side when
trying to connect.

- disconntecting backend 2= no problem..just fast as
expected.

why is that?
how can i setup ipvsadm to not try in vain to route people
to dead backends ?

thanks for your time




--------------------------------------
Know more about Breast Cancer
http://pr.mail.yahoo.co.jp/pinkribbon/


<Prev in Thread] Current Thread [Next in Thread>
  • ipvsadm testing delay, sipieter nicolas <=