Max_size on proxy_cache_path not working correctly

I am having problem with max_size setting on proxy_cache_path. I trying
to
set a limit on disk caching space that can be used by nginx.
It works initially, but after a while the disk space used by nginx will
grow
much larger than max_size limit that I set.
Feels like nginx cache manager die or stop tracking the caching for some
reason.

What could possibly caused this? Is there a limit on how many caching
object
you can have? I am running nginx version 1.7.6

Thanks

Posted at Nginx Forum:

Hello!

On Tue, Dec 16, 2014 at 02:01:05PM -0500, badtzhou wrote:

I am having problem with max_size setting on proxy_cache_path. I trying to
set a limit on disk caching space that can be used by nginx.
It works initially, but after a while the disk space used by nginx will grow
much larger than max_size limit that I set.
Feels like nginx cache manager die or stop tracking the caching for some
reason.

You may want to try looking into logs and checking if the cache manager
process is running (and if it is - what it’s doing).


Maxim D.
http://nginx.org/