Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache fills harddrive despite max_size being set

W-Mark Kubacki
June 03, 2010 05:46AM
2010/6/2 Igor Sysoev <igor@sysoev.ru>:
> On Wed, Jun 02, 2010 at 08:11:53PM +0200, W-Mark Kubacki wrote:
>
>> In Nginx 0.8.38 (and later; on amd64) I've set this:
>>   proxy_cache_path /var/tmp/nginx/cache levels=1:2
>> keys_zone=my-cache:10m inactive=8h max_size=100m;
>>
>> Using that cache Nginx fills my harddrive with its cache, ignoring max_size.
>>
>> Did somebody else observed that behaviour? Or, did I something wrong?
>
> What does "du -kcd1 /var/tmp/nginx/cache" show ?

# du -kc --max-depth=1 /var/tmp/nginx/cache

32459364 /var/tmp/nginx/cache/0
32459368 /var/tmp/nginx/cache
32459368 total

My 'du' doesn't feature parameters "d1", I hope --max-depth is the same.

Additionally I've notice that there are several files larger than
100MB in "cache/0/00". Given their content, their first lines are most
probably from the upstream - which is fine - but should neither get
cached at all given max_size nor should the garbage (lots of ^@
following the first kilobytes) be there.

--
Mark Kubacki
http://mark.ossdl.de/

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

proxy_cache fills harddrive despite max_size being set

W-Mark Kubacki June 02, 2010 02:52PM

Re: proxy_cache fills harddrive despite max_size being set

Igor Sysoev June 02, 2010 03:02PM

Re: proxy_cache fills harddrive despite max_size being set

W-Mark Kubacki June 03, 2010 05:46AM

Re: proxy_cache fills harddrive despite max_size being set

ALIZA.SAND June 14, 2010 01:29PM

Re: proxy_cache fills harddrive despite max_size being set

Ryan Malayter June 30, 2010 12:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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