Hi Willy.

On 2026-11-13 (Fr.) 10:39, Willy Tarreau wrote:
Hi Aleks,

On Fri, Nov 06, 2026 at 11:36:28AM +0100, Aleksandar Lazic wrote:
Hi.

While testing a latency aware variant of "balance random" (an RFC will
follow), I noticed that the comparison of the draws is skipped more
often than expected. random(<draws>) draws the servers on the
consistent hash ring with replacement, so a draw can return the best
server found so far. There is nothing to compare then, and the draw is
lost. With 4 servers and 2 draws, this happens for one choice out of
four, which then behaves like random(1).

[snipp]

I would be glad about any feedback, also if you would prefer to keep
the current behavior of random for some reason I did not think of.

I'm going to merge my smaller change, crediting you for the suggestion,
and your doc patch.

Thank you!
Willy

Thank you.
You are the best :-)

Regards
Aleks


Reply via email to