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: http://wiki.nginx.org/HttpLimitReqModule
.

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]
http://mailman.nginx.org/mailman/listinfo/nginx


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

blog: www.pagefault.info

twitter: www.twitter.com/minibobo

weibo: www.weibo.com/diaoliang

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
http://gadelkareem.com/2012/03/25/limit-requests-per-ip-on-nginx-using-httplimitzonemodule-and-httplimitreqmodule-except-whitelist/

http://forum.nginx.org/read.php?10,214474

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216652,216714#msg-216714

Extended description of HttpLimitZoneModule and HttpLimitReqModule usage
with examples and how to exclude a whitelist of IPs can be found here
http://gadelkareem.com/2012/03/25/limit-requests-per-ip-on-nginx-using-httplimitzonemodule-and-httplimitreqmodule-except-whitelist/

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216652,224351#msg-224351

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs