FASTCGI_CACHE | How many keys (cached files) can a 100m zone store
c0nw0nk
nginx-forum at forum.nginx.org
Tue Apr 24 18:47:16 UTC 2018
Maxim Dounin Wrote:
-------------------------------------------------------
> 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Thank you maxim did not realize it was the md5 sum generated that gets
stored awesome :) Your the best.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279567,279570#msg-279570
More information about the nginx
mailing list