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?
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?