Limit_req_zone values

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:
https://forum.nginx.org/read.php?2,266908,266908#msg-266908

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. [email protected]

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