LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: sync_threshold question

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: sync_threshold question
From: Roberto Nibali <ratz@xxxxxxxxxxxx>
Date: Fri, 10 Nov 2006 20:01:33 +0100
I've noticed that upon a failover, not all connections are sync'd (via
syncdaemons) to the backup director. I read in the docs for ultramonkey (not
using it ... i think ... but that was the only source i could find)
something about /proc/sys/net/ipv4/vs/sync_threshold and how to manipulate
this. If i understand things correctly, sync_threshold has 2 values. By
default they are 3 and 50, meaning that after 3 packets the connection will
be initially synchronised. After that, each 50 sent packets will cause the
connection to be synchronised. That is, if i understand it correctly :)

I think this is a sound understanding of the mechanism.

Now i recall reading somewhere that there is a certain timeout involved. I
mean that if no packets are sent for a certain time, the connection will not
be synchronised. I don't know if this is true, but this could be the reason

Yes, the "templates" are sent once but within the interval specified.

for the problem i described above. If not, what else could be the reason
then? In my test there were only 5 telnet sessions connected, so nothing
special.

These commands i have issued to start the daemons:

master# ipvsadm --start-daemon master --mcast-interface=eth1 --syncid 55
master# ipvsadm --start-daemon backup --mcast-interface=eth1 --syncid 56

backup# ipvsadm --start-daemon master --mcast-interface=eth1 --syncid 56
backup# ipvsadm --start-daemon backup --mcast-interface=eth1 --syncid 55

I don't understand correctly, when exactly are you experiencing missing synchronisation and how does this manifest itself? Can you list a typical use case process for us, please?

Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc

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