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