LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] different algorithms and persistence

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] different algorithms and persistence
From: Joseph Mack NA3T <jmack@xxxxxxxx>
Date: Fri, 26 Oct 2007 03:15:46 -0700 (PDT)
On Fri, 26 Oct 2007, Nikolaj wrote:

> If I'm right about the hashing as I said above, what's the difference
> with source hashing?

what's the difference between source hashing and what?

> For example if a given ip has already made a
> connection to one service and made another connection to a different
> service but with the same source ip address the second connection will
> be redirected to the same real server as the first one, won't it?

if the client makes a 2nd connection to the same virtual 
service at some later time, the connection will go to the 
same realserver.

> Excerpt from the howto
> "The -dh (destination hash) algorythm makes a hash from the target IP
> and all requests to that IP will be sent to the same realserver. This
> means that content from a URL will not be retrieved multiple times from
> the remote server. The realservers (eg squids in this case) will each be
> retreiving content from different URLs."
>
> But the client doesn't know what are the real ips of the real servers
> how can they be cached (the ip addresses)? Or maybe LVS hashes the
> destination ip after it receives the packets and decides to witch real
> server to send it?

-DH is for squids. The target address is the IP of the URL, 
not the VIP or the RIP

> I'm ready to write it, as soon as I'm confident with the differences
> between the different scheduling algorithms and the pros and cons.

great

Joe
-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


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