Welcome! Log In Create A New Profile

Advanced

Doubt with ngx_http_limit_req_module

Posted by marius23 
Doubt with ngx_http_limit_req_module
April 15, 2013 10:43AM
I have a doubt with the directive "limit_req_zone" on "ngx_http_limit_req_module".

In this example we can see that the "shared memory zone" was set to 1MB (1048576 bytes):
limit_req_zone $binary_remote_addr zone=one:1m rate=1r/s;

If every "session state" use 64 bytes, this means that can I save 16384 IP's (1048576 / 64), and after every request returns a "503 Error"

My questions are as follows:
[1] Is posible know how much memory are using or how many requests are saved, to know if the memory asigned is not enough?
[2] If I restart or reload the nginx service this memory are cleaned?
[3] This information has a life time?

I'm worried about reaching the limit and that my website start to return 503 errors to everyone.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready