Welcome! Log In Create A New Profile

Advanced

Re: behavior of cache manager in version 1.10.3

Maxim Dounin
May 15, 2017 09:42AM
Hello!

On Mon, May 15, 2017 at 08:02:18AM -0400, Michael Corn wrote:

> The documentation for proxy_cache_path states:
> The data is removed in iterations configured by manager_files,
> manager_threshold, and manager_sleep parameters (1.11.5).
>
> I was wondering what the behavior of the cache manager was prior to release
> 1.11.5 (specifically, in version 1.10.3).

Prior to changes in 1.11.5, cache manager removed all files it has
to remove according to "inactive" and "max_size" configured. In
some cases this caused responsiveness problems due to huge disk
activity though (for example, if max_size was changed to a smaller
value), and hence the change. Now cache manager sometimes sleeps
even if there are cache items to remove, to avoid overloading of
the IO subsystem.

> How often does the cache manager wake up to clean?

If cache manger has nothing to do, it sleeps till next expected
expiration of a cache item as per "inactive", or for 10 seconds,
whichever is sooner. That is, if there are no inactive cache
items, "max_size" will be checked once in 10 seconds.

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

behavior of cache manager in version 1.10.3

Michael Corn May 15, 2017 08:02AM

Re: behavior of cache manager in version 1.10.3

Maxim Dounin May 15, 2017 09:42AM

Re: behavior of cache manager in version 1.10.3

Michael Corn May 16, 2017 12:45AM

Re: behavior of cache manager in version 1.10.3

Maxim Dounin May 16, 2017 09:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
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