zone_size vs max_size - what's the difference?

Maxim Dounin mdounin at
Wed Jul 6 11:24:37 MSD 2011


On Wed, Jul 06, 2011 at 09:21:12AM +0800, Weikai Xie wrote:

> Hi,
>     I'm wondering what's the difference between the zone_size and max_size
> parameter in a proxy_cache_path directive like below.
> *proxy_cache_path path [levels=number] keys_zone=zone_name:zone_size
> [inactive=time] [max_size=size];*

"zone_size" is a size of keys_zone, i.e. shared memory zone used 
to store cache keys (some minimal metadata about cached pages, 
about 64 bytes on 32-bit platforms).

"max_size" is a maximum size of data on disk (i.e. cache itself).

Maxim Dounin

More information about the nginx mailing list