round robin rule

Tolga Ceylan tolga.ceylan at
Fri Oct 28 17:46:31 UTC 2016

> On Tue, Oct 25, 2016 at 04:28:22PM -0700, Frank Liu wrote:
> Hi there,
>> If I configure one "upstream" with 2 servers and use the default round
>> robin, will the traffic be balanced based on the upstream or the virtual
>> servers. e.g.: if I configure 2 virtual host "server" blocks, both
>> proxy_pass the same upstream, will the requests to each virtual host be
>> balanced individually?

Conceptually rr algorithm runs after 'proxy_pass' so, the overall load
would be %50/%50 even if more than one proxy_pass is
referencing the same upstream block.

More information about the nginx mailing list