Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Re: fastcgi cache path keys zone=name:size (1 reply)

$
0
0
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/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>