How to control the total requests in Ngnix

Peter Booth peter_booth at me.com
Mon Dec 4 09:22:53 UTC 2017


I’ve used the equivalent of nodelay with a rate of 2000 req/sec per IP when a retail website was being attacked by hackers. This was in combination with microcaching and CDN to protect the back end and endure the site could continue to function normally.

Sent from my iPhone

> On Dec 4, 2017, at 1:11 AM, Peter Booth <peter_booth at me.com> wrote:
> 
> I’m a situation where you are confident that the workload is coming from a DDOS attack and not a real user.
> 
> For this example the limit is very low and nodelay wouldn’t seem appropriate. If you look at the techempower benchmark results you can see that a single vote VM should be able to serve over 10,000 requests per sec. 
> 
> Sent from my iPhone
> 
>> On Dec 3, 2017, at 4:08 PM, Gary <lists at lazygranch.com> wrote:
>> 
>> 
>> For what situation would it be appropriate to use "nodelay"? 
>> 
>>  Original Message  
>> From: francis at daoine.org
>> Sent: December 2, 2017 3:02 AM
>> To: nginx at nginx.org
>> Reply-to: nginx at nginx.org
>> Subject: Re: Re: How to control the total requests in Ngnix
>> 
>> On Fri, Dec 01, 2017 at 11:18:06AM +0800, tongshushan at migu.cn wrote:
>> 
>> Hi there,
>> 
>> Others have already given some details, so I'll try to put everything
>> together.
>> 
>> <snip>
>> 
>>> limit_req zone=all burst=100 nodelay;
>> 
>> "block" can be "return error immediately", or can be "delay until the
>> right time", depending on what you configure. "nodelay" above means
>> "return error immediately".
>> 
>> 
>> <snip>
>> 
>> 
>> f
>> -- 
>> Francis Daly        francis at daoine.org
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


More information about the nginx mailing list