Welcome! Log In Create A New Profile

Advanced

How does nginx weighting work?

October 02, 2015 10:22AM
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.
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: 286
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