Welcome! Log In Create A New Profile

Advanced

limit_req_zone key cache lifetime

Chad Hansen
July 14, 2016 03:24PM
I'm looking for documentation or explanation for how keys expire in the
limit_req_zone. I have the basic documenations here:

*A client IP address serves as a key. Note that instead of $remote_addr,
the $binary_remote_addr variable is used here.
The $binary_remote_addr variable’s size is always 4 bytes for
IPv4 addresses or 16 bytes for IPv6 addresses. The stored state always
occupies 64 bytes on 32-bit platforms and 128 bytes on 64-bit platforms.
One megabyte zone can keep about 16 thousand 64-byte states or about 8
thousand 128-byte states. If the zone storage is exhausted, the server will
return the 503 (Service Temporarily Unavailable) error to all further
requests.*

But there's no explanation for how the key cache eventually clears itself.
Is any available?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

limit_req_zone key cache lifetime

Chad Hansen July 14, 2016 03:24PM

Re: limit_req_zone key cache lifetime

Maxim Dounin July 14, 2016 04:28PM

Re: limit_req_zone key cache lifetime

Chad Hansen July 14, 2016 04:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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