[lvs-users] Trying Hard to Understand the Sync Daemon's Behavior
eric.robinson at psmnv.com
Tue Aug 4 22:51:30 BST 2009
> That is strange. Are these connections that have never
> appeared on the master?
It's hard to say, but it seems so. Take a look at the following, where
lb02 is the active load balancer and lb01 is passive.
[root at lb02 ~]# ipvsadm -Lcn|wc -l
[root at lb01 ~]# ipvsadm -Lcn|wc -l
The passive load balancer has 1000 more connections in its table! Then
if we look at the actual table entries, we see this on lb01..
[root at lb01 ~]# ipvsadm -Lcn|sort -k 4|more
IPVS connection entries
TCP 02:21 NONE 10.0.0.154:0 192.168.5.100:3053
TCP 00:43 ESTABLISHED 10.0.0.154:3752 192.168.5.100:3053
TCP 01:43 ESTABLISHED 10.0.0.154:3753 192.168.5.100:3053
TCP 02:14 ESTABLISHED 10.0.0.154:3754 192.168.5.100:3053
TCP 02:14 ESTABLISHED 10.0.0.154:3755 192.168.5.100:3053
TCP 02:21 ESTABLISHED 10.0.0.154:3756 192.168.5.100:3053
TCP 02:55 NONE 10.0.0.180:0 192.168.5.100:3053
TCP 00:55 ESTABLISHED 10.0.0.180:4671 192.168.5.100:3053
TCP 02:55 ESTABLISHED 10.0.0.180:4677 192.168.5.100:3053
..but this on lb02...
IPVS connection entries
TCP 05:14 NONE 10.0.0.154:0 192.168.5.100:3053
TCP 01:51 FIN_WAIT 10.0.0.154:3756 192.168.5.100:3053
TCP 00:01 CLOSE 10.0.0.154:3761 192.168.5.100:3053
TCP 00:01 CLOSE 10.0.0.154:3762 192.168.5.100:3053
TCP 05:42 NONE 10.0.0.180:0 192.168.5.100:3053
TCP 14:42 ESTABLISHED 10.0.0.180:4680 192.168.5.100:3053
This is just the top of the table sorted by client IP, but note that
lb01 has 2 more entries for host 10.0.0.154 than lb02 does, and 1 more
entry for host 10.0.0.180.
> With regards to not timing out, do you have persistence set?
About 2/3 of my ledirectord.cf entries do have persistence set.
> Are the TCP timeouts for LVS in /proc set the same?
The only timeout setting I see is /proc/sys/net/ipv4/tcp_fin_timeout,
which is set to 60 on both load balancers.
Disclaimer - August 4, 2009
This email and any files transmitted with it are confidential and intended solely for LinuxVirtualServer.org users mailing list.. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physician Select Management and Physician's Managed Care. Warning: Although Physician Select Management and Physician's Managed Care have taken reasonable precautions to ensure no viruses are present in this email, the companies cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
More information about the lvs-users