Welcome! Log In Create A New Profile

Advanced

Re: limit_req_zone and limit_req: rate too strict

Valentin V. Bartenev
April 06, 2012 04:58PM
On Friday 06 April 2012 23:38:59 Bruno Prémont wrote:
> >
> > http://nginx.org/r/limit_req
> >
> > limit_req zone=one burst=10 nodelay;
>
> In that case legitimate (from my point of view) requests get rejected
> which is even worse!

No, with "nodelay" parameter they won't be rejected or delayed until the
overflow of burst.

> I wish those that fall under rate to not be delayed to get nice
> distribution (in my case 1s sample-rate!), but to have those between rate
> and burst being delayed to the following seconds.
[...]

There's no discrete "sample-rate". The limit_req module implements classical
"leaky bucket" algorithm, which is simple, cheap and very common in the telecom
world.

http://en.wikipedia.org/wiki/Leaky_bucket

wbr, Valentin V. Bartenev

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

limit_req_zone and limit_req: rate too strict

Bruno Prémont April 06, 2012 09:26AM

Re: limit_req_zone and limit_req: rate too strict

Valentin V. Bartenev April 06, 2012 12:08PM

Re: limit_req_zone and limit_req: rate too strict

Bruno Prémont April 06, 2012 03:40PM

Re: limit_req_zone and limit_req: rate too strict

Valentin V. Bartenev April 06, 2012 04:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
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