Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Limit the number of simultaneous connections to an upstream server

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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>