Rate limiting intervals

PieterVI nginx-forum at nginx.us
Fri Jan 17 21:52:31 UTC 2014


Hello,

With the rate limiting module you can easily rate limit based on seconds or
on minutes.
What I would like to do however is rate limit based on a 100 millisecond or
10 millisecond interval.

That way you do not have a burst of requests at the beginning of a second.
But a more continuous flow of requests.

Is this possible with nginx?
If not can anyone point me to the right location in the source where the
rate limiting is actually done.

(I assume it has something to do with ngx_http_limit_req_lookup in
ngx_http_limit_req_module.c)

Thanks in advance,
Pieter

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246575,246575#msg-246575



More information about the nginx mailing list