Limit requests per resource

Hi, is there a way to limit the number of concurent requests per
resource (eg. maximum 3 requests / backend, others waiting on
frontend)?

You can use limit req module: Module ngx_http_limit_req_module
.

On Thu, Oct 13, 2011 at 9:53 PM, Calin D. [email protected] wrote:

Hi, is there a way to limit the number of concurent requests per
resource (eg. maximum 3 requests / backend, others waiting on
frontend)?


nginx mailing list
[email protected]
nginx Info Page


douban:www.douban.com/people/mustang/

blog: www.pagefault.info

twitter: www.twitter.com/minibobo

weibo: Sina Visitor System

I think what Calin want is limit the concurrent request number to URI
not from remote ip

I don’t know whether " limit_req_zone $uri zone=one:10m rate=1r/s; "
can achieve this.

2011/10/13 Simon L. [email protected]:

Extended description of HttpLimitZoneModule and HttpLimitReqModule usage
with examples and how to exclude a whitelist of IPs can be found here

Posted at Nginx Forum:

Extended description of HttpLimitZoneModule and HttpLimitReqModule usage
with examples and how to exclude a whitelist of IPs can be found here

Posted at Nginx Forum: