Welcome! Log In Create A New Profile

Advanced

Re: multiple limit_req_zone

Valentin V. Bartenev
September 15, 2014 07:04PM
On Monday 15 September 2014 16:05:31 matt_l wrote:
> Valentin,
> Thank you so much for your example. It definitely helps.
> When you say "A client IP address serves as a key. [...]. One megabyte zone
> can keep about 16 thousand 64-byte states." Does that mean that 1 megabyte
> zone can keep the state on 16 thousand different sending IP addresses?

Yes.


> What about the following 2 use cases:
> Use Case #1: One receives 10 requests per second from 10 different
> clients/IPs each of them sending 1 request per second
> Use Case #2: One receives 10 requests per second from 1 client/IP sending
> 10 requests per second.
> Should the zone size be different?

Each state is needed to be kept till it has something in the bucket.

If in the first case the clients doesn't send requests at the same time, but
with 100ms interval between each other, then a place for one state would be
enough. Otherwise, nginx will need up to 10 states to handle them.

In the second case only one state is used.

wbr, Valentin V. Bartenev

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

multiple limit_req_zone

matt_l September 13, 2014 04:37PM

Re: multiple limit_req_zone

Valentin V. Bartenev September 13, 2014 04:50PM

Re: multiple limit_req_zone

matt_l September 13, 2014 06:07PM

Re: multiple limit_req_zone

Valentin V. Bartenev September 13, 2014 07:14PM

Re: multiple limit_req_zone

matt_l September 15, 2014 04:05PM

Re: multiple limit_req_zone

Valentin V. Bartenev September 15, 2014 07:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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