On 02/26/10 12:35 AM, Lutz Griesbach wrote:

> Kacheong, thanks for your answer. I'm still a bit puzzled, though.
> I observed the same behavior in the rr alg as in hipp. My be, it's
> because we use Full NAT in our setup right now? Would DSR and
> rr as lb-alg spread the queries to all backend Server, even from one Client?


By same behavior, do you mean that the back end servers chosen
by rr and hipp algorithm are always the same?  How many servers
do you have?  And how do you test it?  The hash used in this case
can be found in the OpenSolaris source

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/inet/ilb/ilb_alg_hash.c#HASH_IP_PORT_V4

It is quite unlikely that it will match the results of rr algorithm.
The use of DSR or NAT does not affect which server to choose.  If
you use rr, the servers are chosen in a round robin fashion so
all servers should be used, unless health check somehow fails
for some assuming you enable that.  You can use

ilbadm show-hc-result <rule>

to see their health status.



-- 

                                                K. Poon.
                                                kacheong.poon at sun.com

Reply via email to