Limit connections' erratic behaviour

Asif Ali azifali at gmail.com
Mon Mar 16 14:23:13 MSK 2009


Let me correct something,

What I want to block is any single IP from sending more than 100 requests
per second.

regards

Asif Ali



On Mon, Mar 16, 2009 at 4:52 PM, Asif Ali <azifali at gmail.com> wrote:

> Cliff - Apologies - This is a second email thread actually [the earlier one
> was posted days back]
>
>
> Here is the config:
>
> limit_zone   one  $binary_remote_addr  10m;
>  limit_conn one 150;
>
> The app receives several hundred hits per second from various different ip
> addresses.
> I want to block specific IP only from sending in more than 100 or 150
> requests per second..
>
> What I am getting is a reduction in total traffic and half that amount for
> ALL requests.
>
> Thanks in advance.
>
> regards
>
> Asif Ali
>
>
>
>
>
> On Mon, Mar 16, 2009 at 4:28 PM, Cliff Wells <cliff at develix.com> wrote:
>
>> Post the relevant part of your config.   Also try to realize it's the
>> middle of the night in half the world.
>>
>> Cliff
>>
>> On Mon, 2009-03-16 at 15:20 +0530, Asif Ali wrote:
>> > Dear Community,
>> >
>> > Will anyone respond to this request?
>> >
>> >
>> > regards
>> >
>> >
>> > On Mon, Mar 16, 2009 at 11:43 AM, Asif Ali <azifali at gmail.com> wrote:
>> >         Dear All,
>> >         The limit connections module is behaving erratically.
>> >
>> >         I have allocated 20M of Space for storing sessions and our app
>> >         basically gets 100s of requests from several different hosts.
>> >
>> >         We have very few hosts that send in simultaneous connections
>> >         from a single IP
>> >
>> >         But
>> >
>> >         >With limit connections, it restricts to 1/10 of the
>> >         configured value..
>> >
>> >
>> >         Can someone tell me if they have experience with this module
>> >         and help with this issue?
>> >
>> >
>> >         Thanks
>> >
>> >         Asif
>> >
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090316/392adb73/attachment.html>


More information about the nginx mailing list