LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Persistent "server" trick is not working.

To: Jean-francois Nadeau <jf.nadeau@xxxxxxxxxxxx>
Subject: Re: Persistent "server" trick is not working.
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Joseph Mack <mack@xxxxxxxxxxx>
Date: Wed, 17 Nov 1999 11:53:53 -0500 (EST)
On Wed, 17 Nov 1999, Jean-francois Nadeau wrote:

> With persistant port connection (ppc), you forward ports separately
> and port 80 from the client could go to one realserver while port 443
> will go to another. 

for 80 and 443 which should be linked to do anything useful, this is not
good - stay tuned. 

> You can links all ports to have the pcc behaviour
> by using "0" for the port eg (I haven't done this so I don't know 
> whether you have the -g or not)

this should link 80 and 443 to do what you want (haven't tested it
personally but Wensong has).

the -g is for VS-DR scheduling. With 2.2.13 (and possibly 2.2.12, which I
didn't test) the persistence (ppc) can be coupled with any of the
schedulers. 

in the lvs_configure-2.2.13.3.tar.gz file (new update being posted today),
the example lvs_dr.conf.isp_special file look for the entry

SERVICE=t https ppc 192.168.1.1


this tells the director that it has a realserver with proto=tcp,
service=https using default scheduling (wlc), with persistence (default
timeout=360sec) on IP=192.168.1.1, and default weight (-w 1)

after running configure the rc.lvs code produced is

        #setup servers for https
        #service 443 uses default scheduler (wlc), persistent connection with 
default timeout (360 sec)
        /sbin/ipvsadm -A -t 192.168.1.110:443 -p
        echo "adding service 443 to realserver 192.168.1.1 using connection 
type dr weight 1"
        /sbin/ipvsadm -a -t 192.168.1.110:443 -R 192.168.1.1 -g -w 1

here the -g is independant of the ppc 

In the service line above if you change https to 0, you will have
persistance across all ports (ie port 80 and 443 will be linked 
from any particular client to 192.168.1.1). You can do the same
thing for more realservers eg

SERVICE=t https ppc 192.168.1.1 192.168.1.2 192.168.1.3

all clients will be persistant on all ports to all realservers.
So if client 1 goes to port 80 and gets assigned to 192.168.1.2
then when he requests connection to port 443, he will still 
go to 192.168.1.2

> THIS DOES NOT WORK.

what doesn't work?


Joe
--
Joseph Mack mack@xxxxxxxxxxx


----------------------------------------------------------------------
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx

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