<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Please, enlighten us then.<br></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Thu, Apr 13, 2017 at 4:34 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<span class=""><br>
On Thu, Apr 13, 2017 at 10:09:16AM +0200, B.R. via nginx wrote:<br>
<br>
> That is an interesting questions as intuitively, people could think the<br>
> former behavior applies.<br>
><br>
> If I got the source code<br>
</span>> <<a href="https://trac.nginx.org/nginx/browser/nginx/src/http/ngx_http_upstream_round_robin.c#L507" rel="noreferrer" target="_blank">https://trac.nginx.org/nginx/<wbr>browser/nginx/src/http/ngx_<wbr>http_upstream_round_robin.c#<wbr>L507</a>><br>
<span class="">> right, and as the docs<br>
</span>> <<a href="https://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream" rel="noreferrer" target="_blank">https://nginx.org/en/docs/<wbr>http/ngx_http_upstream_module.<wbr>html#upstream</a>><br>
<span class="">> state, nginx is following a weighted round-robin<br>
</span>> <<a href="https://en.wikipedia.org/wiki/Weighted_round_robin" rel="noreferrer" target="_blank">https://en.wikipedia.org/<wbr>wiki/Weighted_round_robin</a>> algorithm.<br>
<span class="">> It thus means it will go over the same list of servers everytime a peer<br>
> needs to be chosen (ie for every request), and pick the first not having<br>
> depleted its weight allocation.<br>
><br>
> To me, it would use the latter of your proposals.<br>
> ​Please correct me if I am wrong, so incorrect information does not<br>
> propagate too much. :o)​<br>
<br>
</span>The Wikipedia link in question doesn't seem to be related to what<br>
nginx does.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" rel="noreferrer" target="_blank">http://nginx.org/</a><br>
</font></span></blockquote></div><br></div></div>