Welcome! Log In Create A New Profile

Advanced

Re: FASTCGI_CACHE | How many keys (cached files) can a 100m zone store

Maxim Dounin
April 24, 2018 01:16PM
Hello!

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.

Quoting http://nginx.org/r/fastcgi_cache_path:

: 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.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

FASTCGI_CACHE | How many keys (cached files) can a 100m zone store

c0nw0nk April 24, 2018 01:06PM

Re: FASTCGI_CACHE | How many keys (cached files) can a 100m zone store

Maxim Dounin April 24, 2018 01:16PM

Re: FASTCGI_CACHE | How many keys (cached files) can a 100m zone store

c0nw0nk April 24, 2018 02:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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