LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

How can I flush the connection table?

To: LVS users mailing list <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: How can I flush the connection table?
From: "Hildebrand, Nils, 122" <Nils.Hildebrand@xxxxxxxxxxxx>
Date: Tue, 13 Jun 2006 15:13:22 +0200
Hi,

I subscribed to the mailing list, because I had a major problem with ipvsadm
today.

I am using ipvsadm v1.24 on a SuSE 9.3 professional (Kernel
2.6.11.4-21.11-smp).

For configuring lvs I use lvs-kiss.

I am doing a load-balancing for two webservers.

Now the problem:
The service is configured with a persistency of one hour.

After some clients connected through lvs to Webserver #2 the Webserver #2
went down.
Some seconds later lvs-kiss realized the servers was down and set the weight
for that server to zero.

BUT: Clients were still trying to connect to Webserver #2.

After I looked at "ipvsadm -Lc" I found that their old connection was still
there and the timeout-value for Webserver#2 got reset to one hour againg
after every try.

I would have expected that all Webserver #2-connections will get invalidated
and that the client-retry would then go to Webserver #1.

What's wrong here?

BTW: Is there any way to zero the connection-table?
ipvsadm -Zc oder -Cc does not work...


Kind regards, Nils

<Prev in Thread] Current Thread [Next in Thread>