Welcome! Log In Create A New Profile

Advanced

Limit the number of simultaneous connections to an upstream server

Posted by MehdiH 
Limit the number of simultaneous connections to an upstream server
June 17, 2016 06:41AM
I am using NGINX as a reverse proxy to an upstream server.

Is there any way that I can limit the number of simultaneous connections NGINX establishes to the upstream server?

The desired behaviour is:

NGINX keeps a maximum of n connections to the upstream
If clients make (n + m) connections then m connections should be queued and submitted to the upstream server as soon as an established connection becomes free.
The NGINX documentation alludes to a couple of parameters in the module ngx_http_upstream_module namely max_conns and queue. The problem is that these parameters are only available in the commercial version of NGINX.

Is there any other way of achieving this behaviour without resorting to the commercial version of NGINX?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready