Welcome! Log In Create A New Profile

Advanced

Re: limit issue, i think it's a bug

Maxim Dounin
November 26, 2011 03:30PM
Hello!

On Sat, Nov 26, 2011 at 07:22:51AM -0500, talisto wrote:

> Maxim Dounin Wrote:
> > How do you test it?
>
> I've been testing it with Siege, but I can actually generate error 503
> responses just by refreshing my web browser fast enough. My results
> with Siege are somewhat random; sometimes the very first request fails,
> then a couple will pass, then another will fail, all within a couple
> seconds. That's with my rate set to 15r/s, which should be more than
> enough.. in Siege I'm only using 5 concurrent users with 1 request per
> second, yet it still fails, often on the first or second hit. In my
> browser, it's a bit more reliable; I have a simple page which makes 2
> ajax requests; the 2nd ajax request will always fail.
>
> As soon as I remove the limit_req line, I can flood my server with as
> many requests as Siege can handle and it never generates a 503, so I
> know that the errors aren't being caused by something else. I'm not
> sure why the limit_req isn't working properly though.

The limit_req is expected to generate 503 as soon it sees more
requests than burst set. As you have no burst set, it will
generate 503 as soon as it sees requests coming with less than
1/15 second interval. This is expected behaviour.

While flooding your your server with requests (with limit_req
set), you should see about 15 successfull requests per second,
others will return 503.

Maxim Dounin

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

limit issue, i think it's a bug

websun November 26, 2009 03:23AM

Re: limit issue, i think it's a bug

talisto November 26, 2011 05:03AM

Re: limit issue, i think it's a bug

Maxim Dounin November 26, 2011 05:40AM

Re: limit issue, i think it's a bug

talisto November 26, 2011 07:22AM

Re: limit issue, i think it's a bug

Maxim Dounin November 26, 2011 03:30PM

Re: limit issue, i think it's a bug

stefancaunter November 26, 2011 08:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
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