limit_conn is not limiting the number of connections in my use case

Chuanwen Chen chencw1982 at gmail.com
Thu Jun 23 07:33:30 UTC 2016


try this one plz

https://github.com/cfsego/nginx-limit-upstream

On Sun, Jun 19, 2016 at 6:41 AM, Valentin V. Bartenev <vbart at nginx.com>
wrote:

> 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
> connections
> > 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
> the
> > 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
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160623/c34c1554/attachment.html>


More information about the nginx mailing list