Re: rate limiting addon

2012-01-29 Thread Willy Tarreau
On Wed, Jan 25, 2012 at 10:38:31AM -0500, S Ahmed wrote: > Willy, > > After thinking about it more, this is the behaviour I want. > > If a user requests more than 100 requests per minute, I want to refuse > connections until the minute expires. > > I don't want to delay traffic, or slow it down

Re: rate limiting addon

2012-01-25 Thread S Ahmed
Willy, After thinking about it more, this is the behaviour I want. If a user requests more than 100 requests per minute, I want to refuse connections until the minute expires. I don't want to delay traffic, or slow it down or ask them to resent, just refuse and drop traffic. The clients applica

Re: rate limiting addon

2012-01-08 Thread Baptiste
Hi Cyril, You're right, and furthermore, this is not conn_rate but "http_req_rate". cheers On Sun, Jan 8, 2012 at 11:39 PM, Cyril Bonté wrote: > Hi all, > > Le dimanche 8 janvier 2012 23:24:35 Baptiste a écrit : >> Hi, >> >> You can do this with a stick-table and a "store conn_rate(60s)". >> Th

Re: rate limiting addon

2012-01-08 Thread S Ahmed
I don't know the clients ipaddresses before hand (in case that matters). On Sun, Jan 8, 2012 at 5:24 PM, Baptiste wrote: > Hi, > > You can do this with a stick-table and a "store conn_rate(60s)". > Then with an ACL, you can trigger decision based on the conn_rate value: > acl abuser src_conn_ra

Re: rate limiting addon

2012-01-08 Thread Cyril Bonté
Hi all, Le dimanche 8 janvier 2012 23:24:35 Baptiste a écrit : > Hi, > > You can do this with a stick-table and a "store conn_rate(60s)". > Then with an ACL, you can trigger decision based on the conn_rate value: > acl abuser src_conn_rate gt 100 > block if abuser > > So the 101st request and a

Re: rate limiting addon

2012-01-08 Thread Baptiste
Hi, You can do this with a stick-table and a "store conn_rate(60s)". Then with an ACL, you can trigger decision based on the conn_rate value: acl abuser src_conn_rate gt 100 block if abuser So the 101st request and above in a minute would be blocked. cheers On Sun, Jan 8, 2012 at 10:53 PM, S

Re: rate limiting addon

2012-01-08 Thread S Ahmed
Actually my requirements are as follows: To block all further connections if they make more than 100 api calls in a given minute. So if they make 100 api calls in the span of 55 seconds, block all further calls for the next 5 seconds. Can I do this? And if I do, it should limit my bandwidth the

Re: rate limiting addon

2012-01-07 Thread Willy Tarreau
On Sat, Jan 07, 2012 at 07:11:02PM -0500, S Ahmed wrote: > I was reading this: http://blog.serverfault.com/2010/08/26/1016491873/ > > A bit confused, the link to the src is version 1.5 but version 1.4 seems to > have a modified date of sept 2011 while 1.5 is august 2010. The most recent 1.5 date

rate limiting addon

2012-01-07 Thread S Ahmed
I was reading this: http://blog.serverfault.com/2010/08/26/1016491873/ A bit confused, the link to the src is version 1.5 but version 1.4 seems to have a modified date of sept 2011 while 1.5 is august 2010. Is this an addon module or? Is it being maintained? Ok my main question is this: When