Welcome! Log In Create A New Profile

Advanced

Re: round robin rule

Francis Daly
October 28, 2016 12:44PM
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?

That sounds like it shouldn't be too difficult to test. Have your upstream
refer to two different nginx server blocks, and be able to identify in the
logs which server was used.

Then send a request to vhost1, to vhost2, to vhost1, and to vhost1
again. Did the first two to vhost1 go to the same upstream? And did the
last to vhost1 go to the other upstream?

I'll be interested in seeing your conclusions.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

round robin rule

Frank Liu October 25, 2016 07:30PM

Re: round robin rule

Francis Daly October 28, 2016 12:44PM

Re: round robin rule

Tolga Ceylan October 28, 2016 01:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready