LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] about persistence connection of ftp

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] about persistence connection of ftp
From: "Sam Zhou" <sam_zhou@xxxxxxxxxxxx>
Date: Fri, 26 Dec 2008 09:58:09 -0700
Hi experts

 

I built a 4 nodes cluster, one of it works as director. And the load balance 
schedule is rr

The OS is SUSE10SP2 enterprise server

 

Every thing is configured by command line.

 

Ipvsadm ?CA  -t 10.10.10.5:ftp ?Cp ?Cs rr

Ipvsadm ?Ca ?Ct 10.10.10.5:ftp ?Cr 10.10.10.1:ftp ?Cg

Ipvsadm ?Ca ?Ct 10.10.10.5:ftp ?Cr 10.10.10.2:ftp ?Cg

Ipvsadm ?Ca ?Ct 10.10.10.5:ftp ?Cr 10.10.10.3:ftp ?Cg

Ipvsadm ?Ca ?Ct 10.10.10.5:ftp ?Cr 10.10.10.4:ftp ?Cg

 

the client will initiate connections to LVS server every 5 minutes, I found 
that all connections from one client was distributed to one fixed real server.

 

When I change the timeout of persistence connection

Ipvsadm ?CA  -t 10.10.10.5:ftp ?Cp  2 ?Cs rr

 

The result is the same.

 

What I need is that the first connection from the client should be 10.10.10.1 , 
 

the second connection  ( 5 minutes late, I use ncftpd library) should be 
directed to 10.10.10.2 

 

I am wondering if the idea is correct. Or I forget something.

 

Thanks in advance !

 

Best Regards

Sam

 

 

 

Sam Zhou (周玉林)

Sr. Systems Engineer

Symantec Software(Beijing) Co. Ltd

Symantec Corporation

www.symantec.com <http://www.symantec.com/> 

-----------------------------------------------------

Office: 8610 85180008 Ext.2127

Mobile: 86 13601178196 

Fax: 8610 85186718

Email: Sam_Zhou@xxxxxxxxxxxx <mailto:Sam_Zhou@xxxxxxxxxxxx> 

-----------------------------------------------------

 

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>