Help understanding rate limiting log entry

Brent Clark brentgclarklist at gmail.com
Thu Sep 1 14:01:53 UTC 2016


Good day Maxim

Thank you for taking the time in your explanation.

Regards

Brent Clark


On 01/09/2016 15:25, Maxim Dounin wrote:
> Hello!
>
> 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
>> understand)
> 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: 54.237.120.210, server: default,
>> request: "GET



More information about the nginx mailing list