Welcome! Log In Create A New Profile

Advanced

Re: How does nginx weighting work?

Maxim Dounin
October 02, 2015 10:54AM
Hello!

On Fri, Oct 02, 2015 at 10:22:14AM -0400, highclass99 wrote:

> upstream myCloud{
> server 10.0.0.1 weight=10;
> server 10.0.0.2 weight=20;
> }
>
> For 30 sequential requests,
> will it work like
> A.
> 10.0.0.1 10.0.0.2 10.0.0.2 -> 10.0.0.1 10.0.0.2 10.0.0.2 -> ... total 10
> times repeat
>
> or will it work like
> B.
> 10.0.0.1 ... 10 times repeat -> 10.0.0.2... 20 times repeat
>
> Because if it works like A, it would be helpful to use large numbers to fine
> tune weighting.
> But, if it works like B, it would be harmful to use large numbers to fine
> tune weighting.

It uses something more like A, though slightly more sophisticated.
Details of the algorithm currently used can be found here:

http://hg.nginx.org/nginx/rev/c90801720a0c

--
Maxim Dounin
http://nginx.org/

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

How does nginx weighting work?

highclass99 October 02, 2015 10:22AM

Re: How does nginx weighting work?

Maxim Dounin October 02, 2015 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
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