https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7046

Kevin A. McGrail <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Kevin A. McGrail <[email protected]> ---
(In reply to RW from comment #3)
> I was just looking at the code and it appear that it doesn't attempt to
> randomize the order, it just rotates the list a random number of time. This
> may be a bit confusing if you are expecting proper randomization.
> 
> Irrespective of whether it's working as intended, this is a poor way of
> doing load balancing. For example if there are four ip addresses A,B,C,D and
> A and B are offline, C gets three times as much load as D.

I believe you are misunderstanding what the switch does.

       -H, --randomize
           For TCP/IP sockets, randomize the IP addresses returned for the
hosts given by the -d switch. This provides for a simple kind of load
balancing.  It will try only three times though.

if you do -d host1,host2,host3... it randomizes those hosts.  It does not
randomize the A records if you have a host1 that gives 3 A records, for
example.

Are you proposing that you would like it to randomize all entries at a weight
of 1 whether explicit or from an A/AAAA record look up?

Regards,
KAM

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to