fastcgi cache path keys zone=name:size
Maxim Dounin
mdounin at mdounin.ru
Tue May 13 11:50:55 UTC 2014
Hello!
On Tue, May 13, 2014 at 04:48:56AM -0400, beatnut wrote:
> I found similar information about :
>
> limit_req_zone $binary_remote_addr zone=one:1m "One megabyte zone can
> keep about 16 thousand 64-byte states. "
>
> or
>
> ssl_session_cache shared:SSL:1m; " The cache size is specified in bytes;
> one megabyte can store about 4000 sessions."
>
> but there is no info about fastcgi_cache_path keys_zone shared memory.
>
> I was searching any tip in the source code of fastcgi module with no
> success.
>
> I'm trying to adjust my setup. There will be about 30k of cached files. How
> big should be size of shared memory ?
Each cache node currently takes about 128 bytes of memory.
So for 30k cached files you'll need about 4 megabytes.
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list