# Limit\_req\_zone values

**URL:** <https://www.ruby-forum.com/t/limit-req-zone-values/244623>\
**Category:** NGINX\
**Created:** [May 15, 2016, 9:48pm UTC](https://www.ruby-forum.com/t/limit-req-zone-values/244623 "2016-05-15T21:48:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [May 15, 2016, 9:48pm UTC](https://www.ruby-forum.com/t/limit-req-zone-values/244623/1 "2016-05-15T21:48:08Z")

</div>

Greetings,

I have the limit\_req\_zone working great in testing environment with the  
following values

limit\_req\_zone $server\_name zone=perserver:10m rate=5r/s;  
limit\_req zone=perserver burst=5;

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

What values are suitable for such traffic levels ?, what are values are  
people using with similar traffic levels ?

Cheers,

Tom.

Posted at Nginx Forum:

> **[limit\_req\_zone values](https://forum.nginx.org/read.php?2,266908,266908#msg-266908)**
>
> Greetings, I have the limit\_req\_zone working great in testing environment with the following values limit\_req\_zone $server\_name zone=perserver:10m rate=5r/s; limit\_req zone=perserver burst=5; The site has up to 750 simultaneous users at peak times.

---

<div class="post-metadata">

**Author:** ![tom.b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@tom.b](https://www.ruby-forum.com/u/tom.b)\
**Post date:** [May 17, 2016, 7:05pm UTC](https://www.ruby-forum.com/t/limit-req-zone-values/244623/2 "2016-05-17T19:05:41Z")

</div>

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?

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
