limit_req_zone values

Francis Daly francis at
Tue May 17 17:05:01 UTC 2016

On Sun, May 15, 2016 at 03:47:37PM -0400, tom.b wrote:

Hi there,

> limit_req_zone $server_name zone=perserver:10m rate=5r/s;
> limit_req zone=perserver burst=5;

limit_req is to limit the number of requests that your nginx will handle
at a time.

Why do you want to limit the number of requests?

If it is "to stop an upstream service from failing", then set it to just
below what the upstream can handle.

Note that your particular limit_req_zone is effectively one counter per
server{} block -- so it is probably an overall limit on this site.

> The site has up to 750 simultaneous users at peak times.

How many requests, or requests per second, corresponds to one user,
on this site?

Francis Daly        francis at

More information about the nginx mailing list