Welcome! Log In Create A New Profile

Advanced

proxy_cache_path with huge zone size

February 27, 2013 04:56AM
Hello,

I have some troubles to configure my reverse proxy cache.

I would like to use a proxy cache with about 5 TB.
If I estimate an average file size of 128KB, I need to define my zone size to about 5GB. (5 TB / (128KB / 128))

Here the configuration line:
proxy_cache_path /opt/.../hdd_storage/cache levels=1:2 keys_zone=proxyCacheZone_hdd:5000m max_size=5000g inactive=1d;
Now, as I have 16 CPUs, I defined 16 worker_process.

The problem is, for each worker an allocation of 5 GB is done for a total of 80 GB of ram usage!!!

Do I have misunderstood somethig?
Is there a way to used a shared memory between workers for the zone cache?

Thank you in advance
Traquila
SubjectAuthorPosted

proxy_cache_path with huge zone size

traquilaFebruary 27, 2013 04:56AM

Re: proxy_cache_path with huge zone size

Igor SysoevFebruary 27, 2013 05:00AM

Re: proxy_cache_path with huge zone size

traquilaFebruary 27, 2013 05:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready