<div dir="ltr">Going to pushing out the change to 1 worker later today.<div><br></div><div style>It's just become more of an exercise in understanding why it was behaving that way.</div><div style><br></div><div style>
Even under "high" load (in this case ~50 active_connections), the 3 socks don't seem to be getting equal number of requests.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 12:29 PM, Ruslan Ermilov <span dir="ltr"><<a href="mailto:ru@nginx.com" target="_blank">ru@nginx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Mar 21, 2013 at 12:03:59PM -0700, John Watson wrote:<br>
> Well doesn't make sense when theres >4 concurrent requests<br>
> At any given time there's around 12 active_connections, but sock-3 is<br>
> still never being used<br>
<br>
</div>Can you see a difference with only one worker process?<br>
<br>
Currently, different workers have distinct counters of active connections.<br>
It should be unnoticed under a high load.<br>
<div class="im HOEnZb"><br>
> On Thu, Mar 21, 2013 at 9:34 AM, John Watson <[1]<a href="mailto:john@disqus.com">john@disqus.com</a>> wrote:<br>
><br>
> Ohhhh... that makes complete sense now.<br>
> Had 4 workers.<br>
> Thanks!<br>
><br>
</div><div class="HOEnZb"><div class="h5">> On Thu, Mar 21, 2013 at 4:47 AM, Ruslan Ermilov <[2]<a href="mailto:ru@nginx.com">ru@nginx.com</a>> wrote:<br>
><br>
> On Thu, Mar 21, 2013 at 01:45:14AM -0700, John Watson wrote:<br>
> > Was investigating some issues today when we noticed that<br>
> least_conn wasn't<br>
> > behaving as expected.<br>
> > upstream backend {<br>
> > least_conn;<br>
> > server unix:/tmp/sock-1.sock;<br>
> > server unix:/tmp/sock-2.sock;<br>
> > server unix:/tmp/sock-3.sock;<br>
> > }<br>
> > The expected behavior for 4 simultaneous requests it should<br>
> distribute<br>
> > them:<br>
> > sock-1: 2<br>
> > sock-2: 1<br>
> > sock-3: 1<br>
> > However, what we're seeing is:<br>
> > sock-1: 3<br>
> > sock-2: 1<br>
> > sock-3: 0<br>
> > Which coincidentally lines up with the number of requests a<br>
> socket can<br>
> > service simultaneously.<br>
> > This is using 1.2.7<br>
><br>
> And the number of configured worker processes is?<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>