LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: About: LVS synchronization feature

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: About: LVS synchronization feature
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Wed, 5 Jun 2002 22:18:12 +0800 (CST)
On Tue, 4 Jun 2002 stefano.mason@xxxxxxxxxxxx wrote:

> 
> Besides the IP_VS_SYNC_CONN_TIMEOUT is possible to tunning other
> parameters, because the "saprouter" application, during a session, receive
> few packet and respond with multitude of it. Since I understood every 50
> incoming packets per connection there will be a new sync, isn't impossible
> to "saprouter" application to reach this threshold.
> 

For your application, maybe you can tune this threshold smaller, and set 
the IP_VS_SYNC_CONN_TIMEOUT longer.

> [root@lvs1 ipvs]# ipvsadm -l --stats
> IP Virtual Server version 1.0.3 (size=4096)
> Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes
> OutBytes
>   -> RemoteAddress:Port
> TCP  saprouter.unix.debis.it:3299       11     1174        0   175223
> 0
>   -> cleo.unix.debis.it:3299             6      570        0    81117
> 0
>   -> nefe.unix.debis.it:3299             5      604        0    94106
> 0
> 
> 
> Or is possible to change the behaviour of LVS-SYNC like:
> - sync all ESTABLISHED connection every a specific timeout.
> 

We usually perfer not to do this, because it may cause a big data traffic 
from the primary load balancer to the backup one. For example, there are 
10,000 established connections, the sychronization data will be of around 
1M bytes. And, it is hard to choose the right timeout too.

Regards,

Wensong



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