Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
Rolled into production and after tens of thousands of page requests only 3 were smacked down and all were bogus security scanners or "bad dudes" MISSION ACCOMPLISHED! Thanks a ton Maxim! On Wed, Nov 13, 2013 at 10:20 AM, Justin Deltener wrote: > I'll give that a try. I really appreciate your hel

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
I'll give that a try. I really appreciate your help Maxim! On Wed, Nov 13, 2013 at 10:01 AM, Maxim Dounin wrote: > Hello! > > On Wed, Nov 13, 2013 at 09:09:55AM -0600, Justin Deltener wrote: > > > Aha, that is the lightbulb moment. > > > > So if we're talking actual rate..which makes sense how

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Maxim Dounin
Hello! On Wed, Nov 13, 2013 at 09:09:55AM -0600, Justin Deltener wrote: > Aha, that is the lightbulb moment. > > So if we're talking actual rate..which makes sense how would you setup a > scenario with the following requirements. > > You can have whatever rate you want as long as you don't exce

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
Aha, that is the lightbulb moment. So if we're talking actual rate..which makes sense how would you setup a scenario with the following requirements. You can have whatever rate you want as long as you don't exceed 5 proxy requests in the same second. I don't care if 5 come within 5ms of each othe

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Maxim Dounin
Hello! On Wed, Nov 13, 2013 at 07:17:36AM -0600, Justin Deltener wrote: [...] > current requests..which is what i'm attempting to do) Using a burst of 6, i > would expect a request of 8 in one second would have 4 at full speed, 2 > delayed and 2 dropped but it seems that's where i'm horribly wro

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
I thought I did a good job detailing my issue and setup and clearly didn't do that well. I apologize. 1) I am using limits, which is why i mentioned it is delaying requests. Specifically i'm using limit_req zone=proxyzone burst=6; 2) I understand the difference between delay request and one resp

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Maxim Dounin
Hello! On Tue, Nov 12, 2013 at 09:24:57PM -0600, Justin Deltener wrote: > For the life of me I can't seem to get my configuration correct to limit > requests. I'm running nginx 1.5.1 and have it serving up static content and > pushing all non-existent requests to the apache2 proxy backend for ser

limit_req_zone limit by location/proxy

2013-11-12 Thread Justin Deltener
For the life of me I can't seem to get my configuration correct to limit requests. I'm running nginx 1.5.1 and have it serving up static content and pushing all non-existent requests to the apache2 proxy backend for serving up. I don't want to limit any requests to static content but do want to lim