Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_path's max_size being violated/ignored

Maxim Dounin
April 09, 2013 08:00PM
Hello!

On Tue, Apr 09, 2013 at 05:24:12PM -0400, gwinans wrote:

> So, I've run without this third party cache purge module since I mentioned a
> custom build.
>
> The server is still chewing through disk space and IO remains pegged to the
> wall (mix of the cache loader and new cache items). The cache loader seems
> unable to keep up -- I've never seen it actually delete anything. Through
> watching strace, it's just loading items. Does it not work on the queue
> until all items are loaded?

Cache _loader_ never deletes anything. It loads information about
the cache from disk. If it's running, it means that information
about the cache wasn't yet loaded and nginx can't maintain
configured max_size as it don't know current cache size (yet).

In contrast, cache _manager_ maintains max_size and deletes
inactive cache items. It will not be able to maintain max_size
till the cache is loaded, see above.

> Is there anything I can do to try to alleviate this problem?

If you have problems with IO, most trivial solution to try is to
reduce IO with proxy_cache_min_uses, see
http://nginx.org/r/proxy_cache_min_uses.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

proxy_cache_path's max_size being violated/ignored

gwinans April 08, 2013 11:46AM

Re: proxy_cache_path's max_size being violated/ignored

Maxim Dounin April 08, 2013 12:24PM

Re: proxy_cache_path's max_size being violated/ignored

gwinans April 08, 2013 12:28PM

Re: proxy_cache_path's max_size being violated/ignored

Maxim Dounin April 08, 2013 01:10PM

Re: proxy_cache_path's max_size being violated/ignored

gwinans April 08, 2013 01:16PM

Re: proxy_cache_path's max_size being violated/ignored

Maxim Dounin April 08, 2013 02:44PM

Re: proxy_cache_path's max_size being violated/ignored

gwinans April 08, 2013 02:54PM

Re: proxy_cache_path's max_size being violated/ignored

gwinans April 09, 2013 05:24PM

Re: proxy_cache_path's max_size being violated/ignored

Maxim Dounin April 09, 2013 08:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready