Welcome! Log In Create A New Profile

Advanced

(no subject)

fhal
July 19, 2012 03:36AM
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._______________________________________________
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: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready