LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Persistence, cookie solution

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Persistence, cookie solution
From: Wayne <wayne@xxxxxxxxxxxxxxx>
Date: Mon, 10 Sep 2001 10:16:22 -0700
At 09:25 PM 9/10/2001 +0800, you wrote:
>Hi,
>
>Tim McAuley wrote:
>
>> Hiya,
>>
>> I need some hints with using LVS with cookies.
>>
>> We are using PHP code, which uses cookies, and I need to try and benchmark
>> the system. The problem is that each connection will be coming from the same
>> IP address and therefore the persistence option in ipvsadm will not work
>> because all the requests are sent to one server.
>>
>> Is there any method of configuring LVS that might work? Or will I need to
>> look for another "HTTP Header" based load balancing system? I'm very
>> impressed with the ease of using LVS so far, and would prefer to keep with
>> it, but if anyone has any other recommendations, I'd be happy to hear them.
>>
>> A solution to the benchmarking problem would also cope with multiple
>> requests coming from a company/ISP proxy server as well.
>>
>
>I think the cookie persistent connection can't be support by LVS, because the
>cookie is based on HTTP which is upside of TCP while the LVS is made for
>IP. The protocol level isn't same. May be you need to modify Mr. Zhang's tcpvs
>to realize the function.

If you try to benchmark your systems, not LVS, then turn the persistent
off, just use LVS without persistent, that will distribute the load based on
the number of connections not, the IP address the connection comes
from.



>>
>> Many thanks,
>>
>> Tim
>>
>> _______________________________________________
>> 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
>
>Best regards.
>Zhao.
>
>
>
>_______________________________________________
>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>