Re: upstream keepalive debugging

2013-09-03 Thread Maxim Dounin
Hello! On Tue, Sep 03, 2013 at 02:19:32PM +0100, Richard Kearsley wrote: > Ah, let me guess - is the keepalive number "per worker"? Sure, and it's what documentation explicitly states, see http://nginx.org/r/keepalive: : The connections parameter sets the maximum number of idle : keepalive con

Re: upstream keepalive debugging

2013-09-03 Thread Richard Kearsley
Ah, let me guess - is the keepalive number "per worker"? On 03/09/13 13:42, Richard Kearsley wrote: Hi I seem to have an issue where the upstream keepalives aren't being re-used It shouldn't ever need more than 500 connections to the upstream, but it keeps making more? and doesn't stick to t

upstream keepalive debugging

2013-09-03 Thread Richard Kearsley
Hi I seem to have an issue where the upstream keepalives aren't being re-used proxy_http_version 1.1; upstream dev1 { server 10.0.0.11 max_fails=0; keepalive 1024; } location / { proxy_pass http://dev1; proxy_set_header Connection ""; } On a separate server I run 'ab -n 500 -c