Welcome! Log In Create A New Profile

Advanced

(no subject)

Ruslan Ermilov
July 19, 2012 05:44AM
On Thu, Jul 19, 2012 at 03:34:09PM +0800, fhal wrote:
> Hi All,
>
> According to NGINX wiki,
>
> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
>
> server {
> location /search/ {
> limit_req zone=one burst=5;
> }
>
> means allows a user no more than 1 request per second on average, with
> bursts of no more than 5 requests.
>
> But what's the difference between rate= and burst=?
> For example,
>
> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
> limit_req zone=one burst=5;
>
> limit_req_zone $binary_remote_addr zone=one:10m rate=5r/s;
> limit_req zone=one burst=1;
>
> What's the difference between above code? From my understanding, for both
> settings, users can establish no more than 6 requests at the same time.

http://nginx.org/en/docs/http/ngx_http_limit_req_module.html

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

(no subject)

fhal July 19, 2012 03:36AM

(no subject)

Ruslan Ermilov July 19, 2012 05:44AM

Absolute maximum value for proxy_read_timeout

Duane Mulder July 19, 2012 10:24PM

Re: Absolute maximum value for proxy_read_timeout

Maxim Dounin July 20, 2012 05:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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