LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

problem: LBLC flapping

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: problem: LBLC flapping
From: "Dongluo Chen" <dongluo.chen@xxxxxxxxxxxx>
Date: Wed, 4 Aug 2004 16:57:01 +0800
Hi all,

I have a problem with the LBLC scheduler. The incoming sessions are not 
distributed 
according to their weights. I wonder if I have problem with the LVS 
configurations. I use 
HeartBeat + Ldirectord (UltraMonkey) to setup the LVS-DR cluster, 2 directors + 
2
realservers. Please find below the load balance record which was collected 
within 2 hours, 
and ldirectord.cf. 

/var/log/ldirectord.log did not contain important information. I have check the 
incoming IP
addresses. No more than 5 connections are from a same IP. I need LBLC because 
different 
connections from an IP are related. I could not tell why LBLC worked like that. 
I want to 
know how to smooth the session distribution. 

Thanks in advance,
-Dongluo

==================== ipvsadm record ===========================

[root@DT1 root]# ipvsadm -L
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  dzh_vip:http lblc
  -> RS114:http                   Route   1      24         892       
  -> RS113:http                   Route   1      168        993       

[root@DT1 root]# ipvsadm -L
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  dzh_vip:http lblc
  -> RS114:http                   Route   1      496        1322      
  -> RS113:http                   Route   1      7          0         

[root@DT1 ha.d]# ipvsadm -L
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  dzh_vip:http lblc
  -> RS114:http                   Route   1      106        431       
  -> RS113:http                   Route   1      158        922       

[root@DT1 ha.d]# ipvsadm -L
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  dzh_vip:http lblc
  -> RS114:http                   Route   1      24         0         
  -> RS113:http                   Route   1      199        1529      

[root@DT1 ha.d]# ipvsadm -L
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  dzh_vip:http lblc
  -> RS114:http                   Route   1      612        397       
  -> RS113:http                   Route   1      52         50      


==================== ldirectord.cf ===========================
# Global Directives
checktimeout=10
checkinterval=2
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
#logfile="local0"
quiescent=yes

# A sample virual with a fallback that will override the gobal setting
virtual=211.157.127.211:80
        real=211.157.127.113:80 gate
        real=211.157.127.114:80 gate
        fallback=127.0.0.1:80 gate
        service=http
        request="testpage.html"
        receive="Test Page"
        scheduler=lblc
        #persistent=600
        #netmask=255.255.255.255
        protocol=tcp
========================================================
<Prev in Thread] Current Thread [Next in Thread>