multiple limit_req_zone

matt_l nginx-forum at nginx.us
Sat Sep 13 22:07:31 UTC 2014


Valentin

Thank you very much for your response.

What would be a use case where one would define multiple limit_req_zone? 

For example, I would assume that the following

limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;
limit_req_zone $binary_remote_addr zone=two:10m rate=10r/s;

is completely equivalent to

limit_req_zone $binary_remote_addr zone=two:20m rate=10r/s;

I am thinking that one would want to have multiple limit_req_zone if one
wants different rates and zone sizes?

On a separate note, how does one decides the size needed for zone?

Thank you for your help

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



More information about the nginx mailing list