Francis Daly
May 17, 2016 01:06PM
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 Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

limit_req_zone values

tom.b May 15, 2016 03:47PM

Re: limit_req_zone values

Francis Daly May 17, 2016 01:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready