proxy_cache_path's max_size being violated/ignored

gwinans nginx-forum at
Mon Apr 8 15:46:55 UTC 2013

Hi folks,

We setup some nginx instances a few months ago in order to serve up/cache
video content. Recently, we've noticed that there is *severe* cache overrun
-- on the order of 1TB + per cache directory.

It seems like proxy_cache_path is entirely ignoring the max_size value
specified in the config.

Here's the config as it stands:

The actual cache size on-disk is ~1.1-1.4TB rather than the expected 320GB.
I'm at a loss after having asked for days on end in the #nginx channel on

Did I pooch the config? Is the nginx cache loader unable to keep up with the
incoming data rate? Is the max_size value arbitrarily ignored for some

Posted at Nginx Forum:,238200,238200#msg-238200

More information about the nginx mailing list