Welcome! Log In Create A New Profile

Advanced

Re: bug in nginx-0.8.28

November 26, 2009 06:32AM
requests with no pauses using apache's benchmark.
I need a way to limit 5 connections per ip.

also tried:

limit_zone one $binary_remote_addr 10m;
limit_conn one 5;

this setting is completely ignored for some reasons.

--- On Thu, 11/26/09, Maxim Dounin <mdounin@mdounin.ru> wrote:

> From: Maxim Dounin <mdounin@mdounin.ru>
> Subject: Re: bug in nginx-0.8.28
> To: nginx@nginx.org
> Date: Thursday, November 26, 2009, 1:08 PM
> Hello!
>
> On Thu, Nov 26, 2009 at 12:20:20AM -0800, Paul Roland
> wrote:
>
> > I have:
> >
> >     
>    limit_req_zone 
> $binary_remote_addr 
> zone=one:10m   rate=5r/s;
> >     
>    limit_req   zone=one 
> burst=5;
> >
> > in http zone.
> >
> > whatever changes I make ot that directive even if I
> set 100/s won't serve more than 2 requests per second.
> >
> > maybe Im doing it wrong?
>
> Are you testing it with single stream of requests without
> pauses
> between them?
>
> In this case result of 2 reqs/second is somewhat expected,
> since
> every second request will be delayed for something like 1
> second
> as it follows previous request immediately.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>




_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

bug in nginx-0.8.28

websun November 26, 2009 03:24AM

Re: bug in nginx-0.8.28

Maxim Dounin November 26, 2009 06:16AM

Re: bug in nginx-0.8.28

websun November 26, 2009 06:32AM

Re: bug in nginx-0.8.28

Maxim Dounin November 26, 2009 07:06AM

Re: bug in nginx-0.8.28

websun November 26, 2009 01:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready