Help understanding rate limiting log entry
mdounin at mdounin.ru
Thu Sep 1 13:25:19 UTC 2016
On Thu, Sep 01, 2016 at 10:43:55AM +0200, Brent Clark wrote:
> I just implemented rate limiting.
> Could someone please explain what
> *42450 is / means
This is a connection number, also available as $connection.
> 109154#109154 is / means
This is nginx worker PID (also available as $pid) and thread identifier.
> and what also
> 10.195 (I take it 10 is the size my bucket, but its the 195 I dont
This is number of requests acumulated in the bucket. If this
number is more than burst defined (10 in your case), further
request will be rejected.
Number of requests in the bucket is reduced according to the rate
defined and current time, and may not be integer. The ".195"
means that an additional request will be allowed in about 195
milliseconds assuming rate 1r/s.
> Here is the log entry:
> 2016/09/01 10:06:29 [error] 109154#109154: *42450 limiting requests, excess:
> 10.195 by zone "req_limit_per_ip", client: 22.214.171.124, server: default,
> request: "GET
More information about the nginx