Re: weight and balancing in upstream proxy

2017-04-14 Thread Frank Liu
Hi Aleks, Those information are extremely helpful. Much appreciated! Regards, Frank On Fri, Apr 14, 2017 at 1:47 AM, Aleksandar Lazic wrote: > Hi. > > Am 12-04-2017 23:50, schrieb Frank Liu: > > Hi, >> >> How does nginx balances traffic to upstream with different weight? >>

Re: weight and balancing in upstream proxy

2017-04-14 Thread Aleksandar Lazic
Hi. Am 12-04-2017 23:50, schrieb Frank Liu: Hi, How does nginx balances traffic to upstream with different weight? If I have 3 servers in upstream, with weight 1, 2, 4, assuming all are healthy, will nginx send traffic to server 1, 2, 3, 2, 3, 3, 3 or 1, 2, 2, 3, 3, 3, 3? If I have two

Re: weight and balancing in upstream proxy

2017-04-14 Thread Francis Daly
On Thu, Apr 13, 2017 at 10:08:21PM -0700, Frank Liu wrote: Hi there, > Thanks for confirming that there is no document, and any results observed > through testing or reviewing code will not be guaranteed. I guess it is > purposely undocumented so that people won't rely on one behavior and we are

Re: weight and balancing in upstream proxy

2017-04-14 Thread B.R. via nginx
Please, enlighten us then. --- *B. R.* On Thu, Apr 13, 2017 at 4:34 PM, Maxim Dounin wrote: > Hello! > > On Thu, Apr 13, 2017 at 10:09:16AM +0200, B.R. via nginx wrote: > > > That is an interesting questions as intuitively, people could think the > > former behavior applies.

Re: weight and balancing in upstream proxy

2017-04-13 Thread Frank Liu
Hi Francis, Thanks for confirming that there is no document, and any results observed through testing or reviewing code will not be guaranteed. I guess it is purposely undocumented so that people won't rely on one behavior and we are free to change. Regards, Frank On Thu, Apr 13, 2017 at 4:49

Re: weight and balancing in upstream proxy

2017-04-13 Thread Francis Daly
On Wed, Apr 12, 2017 at 02:50:08PM -0700, Frank Liu wrote: Hi there, > How does nginx balances traffic to upstream with different weight? If I > have 3 servers in upstream, with weight 1, 2, 4, assuming all are healthy, > will nginx send traffic to server 1, 2, 3, 2, 3, 3, 3 or 1, 2, 2, 3, 3, 3,

Re: weight and balancing in upstream proxy

2017-04-13 Thread Frank Liu
Hi Maxim, Thanks for pointing out the link is not related. Do you have the answer to the original question or a related link? Thanks Frank > On Apr 13, 2017, at 7:34 AM, Maxim Dounin wrote: > > Hello! > >> On Thu, Apr 13, 2017 at 10:09:16AM +0200, B.R. via nginx wrote: >>

Re: weight and balancing in upstream proxy

2017-04-13 Thread Maxim Dounin
Hello! On Thu, Apr 13, 2017 at 10:09:16AM +0200, B.R. via nginx wrote: > That is an interesting questions as intuitively, people could think the > former behavior applies. > > If I got the source code > >

Re: weight and balancing in upstream proxy

2017-04-13 Thread B.R. via nginx
That is an interesting questions as intuitively, people could think the former behavior applies. If I got the source code right, and as the docs

weight and balancing in upstream proxy

2017-04-12 Thread Frank Liu
Hi, How does nginx balances traffic to upstream with different weight? If I have 3 servers in upstream, with weight 1, 2, 4, assuming all are healthy, will nginx send traffic to server 1, 2, 3, 2, 3, 3, 3 or 1, 2, 2, 3, 3, 3, 3? If I have two servers with both weight 50, will nginx will 50