FASTCGI_CACHE | How many keys (cached files) can a 100m zone store
mdounin at mdounin.ru
Tue Apr 24 17:14:51 UTC 2018
On Tue, Apr 24, 2018 at 01:06:48PM -0400, c0nw0nk wrote:
> As it says on the Nginx docs for limit_req
> One megabyte zone can keep about 16 thousand 64-byte states or about 8
> thousand 128-byte states.
> What can a 100m zone for the fastcgi_cache store ?
> depending on the length of the fastcgi_cache_key and how many variables that
> contains i am sure could affect it but be nice to have a example for better
> understanding of how many file paths are expected to be in the 100mb zone.
: One megabyte zone can store about 8 thousand keys.
It does not depend on the length of fastcgi_cache_key or anything
else, as only md5 of the key is stored in memory.
More information about the nginx