LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: How to maintain persistent connection forever?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: How to maintain persistent connection forever?
From: Ken Brownfield <krb@xxxxxxxxxxx>
Date: Tue, 21 Mar 2006 12:25:50 -0800
If you're using the wlc scheduler, there is a persistence setting in seconds. You should be able to set this to a large number, but your connection table might become too large to handle. As far as I know, the persistence counter is reset for every connection, so only if you really had long periods of zero activity would you need to boost that setting.

An alternative might be the sh scheduler, which does not perform load *balancing* but will always send a specific client (based on IP) to the same real server in perpetuity (or until the real server complement changes, I'm guessing.)

But if you really want permanent persistence and you're kind of hacking it in as a load-balancing feature, you'll probably be disappointed -- the SH hash could change if you lose a real server, and the connection table isn't the best place to store what would become a large, permanent session database. As someone mentioned, if it's sessions you need, a database may be a more robust option.

Cheers,
--
Ken.
krb@xxxxxxxxxxx

On Mar 21, 2006, at 7:18 AM, Monty Ree wrote:

Hello, all.

I would like to maintain persistent connection forever or for a long time like over 1 or 2 days at LVS. Is it possible?
Because, session must be maintained until user close the browser.
And is there any persistent limit time to LVS or not?

Thanks in advance for your help.

_________________________________________________________________
책상위에 다리 올리고 느긋하게 즐긴다... MSN 온라 인 상영관 http://vod.msn.co.kr
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


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