Joe:
>
> Tim McAuley wrote:
>
> > 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.
>
> what you're saying is that LVS persistence doesn't work in
> this situation,
> when I'm pretty sure it does.
>
well, somewhat. Persistence does work, but cancels out the affect of load
balancing.
Current set-up:
Benchmark Client (1000 attempts) -> Load Balancer -> Server X & Server Y
However all the requests will get sent to only one of the backend servers,
thus not providing an accurate benchmark.
----------
Zhao:
>
> 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.
>
>
That's right. What I'm really looking for is persistence at a higher level,
but with the performance of LVS.
I have some of the information about Level 7 switching, and was wondering
what other people thought of this? Has anyone used high level load balancing
and what do you think of it?
http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO-23.html#L7
Currently our code (inherited... and needing redesign) uses cookies, which
would be stored on the individual servers. It is true that if these were
stored in the database, then the need for persistence is nullified, however
I'd prefer to explore all our options.
Thanks,
Tim
|