Welcome! Log In Create A New Profile

Advanced

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

Chuanwen Chen
June 23, 2016 03:34AM
try this one plz

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

On Sun, Jun 19, 2016 at 6:41 AM, Valentin V. Bartenev <vbart@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

matt_l June 18, 2016 11:49AM

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

Valentin V. Bartenev June 18, 2016 06:42PM

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

Chuanwen Chen June 23, 2016 03:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready