limit_conn is not limiting the number of connections in my use case
chencw1982 at gmail.com
Thu Jun 23 07:33:30 UTC 2016
try this one plz
On Sun, Jun 19, 2016 at 6:41 AM, Valentin V. Bartenev <vbart at nginx.com>
> On Saturday 18 June 2016 11:49:16 matt_l wrote:
> > Hello,
> > I have a hard time understanding limit_conn
> > My NGINX has the configuration below. I would expect to see 16
> > on the backend server 192.168.10.131 defined in the "dynamic" directive.
> > Yet I see ~50-60 connections.
> > QPS: 3056
> > Active connections: 58
> > QPS: 3064
> > Active connections: 54
> > QPS: 3063
> > Active connections: 59
> > Please note the QPS (Query Per Second) limiting works well.
> > I would greatly appreciate any tip as to what is going on with my use of
> > limit_conn.
> The limit_conn module doesn't limit number of connections to upstream.
> It's all about client connections.
> Since you have configured "keepalive 32" each worker process can keep open
> up to 32 connections to your backend even without client requests.
> wbr, Valentin V. Bartenev
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx