Hello,
I think you should first add up the weights to reach a total, then generate
a random number and mod that to the total sum. Then readd from each item's
weight until you reach the moded sum. HTH.
Regards,
SZ
On Tue, Dec 15, 2009 at 1:45 PM, Stanislav wrote:
> Hi, everybody,
>
> I need to
Hi, everybody,
I need to implement a kind of weighted round robin distribution
for HTTP ICS-based reverse-proxy. I've found some info about
packets distribution but neither about users (sessions) distribution.
The difference is that, according to the algorithms, packets can be
left in a queue (so