Welcome! Log In Create A New Profile

Advanced

Re: Problem with proxy_cache_path and limit

Maxim Dounin
December 19, 2017 08:46AM
Hello!

On Mon, Dec 18, 2017 at 09:14:43PM -0500, erick3k wrote:

[...]

> proxy_cache_path /home/admin/cachemaster levels=1:2 keys_zone=my_cache:100m
> max_size=1g inactive=60m use_temp_path=off;

[...]

> but the folder /home/admin/cachemaster fills up beyond 1gb, what am i
> missing

Could you please clarify what exactly do you observe?

Note that "max_size=" is not a strict limit, but rather a
threshold when nginx will start cleaning old cache items. It
doesn't guarantee that the size of the folder will not exceed the
limit specified - rather, nginx will take actions when the size
exceeds the limit.

Note well that with "use_temp_path=off" temporary files are placed
into the cache directory, but they will not be counted against
max_size.

That is, with the specified configuration it is expected that the
folder can contain more than 1gb under load. Especially if there
are large cacheable responses in flight, which will occupy space
as temporary files.

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

Problem with proxy_cache_path and limit

erick3k December 18, 2017 09:14PM

Re: Problem with proxy_cache_path and limit

tokers December 18, 2017 09:44PM

Re: Problem with proxy_cache_path and limit

erick3k December 18, 2017 09:51PM

Re: Problem with proxy_cache_path and limit

erick3k December 18, 2017 09:59PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 19, 2017 08:46AM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 12:48PM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 12:51PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 19, 2017 01:12PM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 01:31PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 19, 2017 02:40PM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 04:13PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 20, 2017 08:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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