proxy_cache_path growing beyond max_size

gaima nginx-forum at nginx.us
Thu Aug 25 15:31:36 UTC 2011


morpheu Wrote:
-------------------------------------------------------
> Hi,
> 
> I've read documentation about proxy_cache_path,
> proxy_temp_path and client_body_temp_path
> directives but I'm a bit confused about proxy
> cache size and clean up cache manager process.
> Using tools like skipfish to test website security
> give me lot of 404 errors, which is a normal, but
> setting proxy_cache_valid to a tiny value, around
> 1m, always causes cache increased beyond limits.
> So, here is my settings: 
> 
> proxy_cache_path  /var/cache/proxy/proxy_cache 
> levels=2:2:2 keys_zone=cache_local:2m 
> max_size=200m inactive=1d;
> client_body_temp_path
> /var/cache/proxy/client_body_temp 2 2 2
> proxy_temp_path /var/cache/proxy/proxy_temp 2 2
> 2;
> 
> proxy_cache_path always grows above 200m and fill
> up entire FS until it runs out of space. Is cache
> manager process should keep it with enough space,
> right? What am I doing wrong ? 
> 
> Regards.


I've been seeing this today aswell. The cache manager process isn't
running.

2011/08/24 15:50:20 [notice] 10723#0: signal 1 (SIGHUP) received,
reconfiguring
2011/08/24 15:50:20 [notice] 10723#0: reconfiguring
2011/08/24 15:50:20 [notice] 10723#0: using the "epoll" event method
2011/08/24 15:50:20 [notice] 10723#0: start worker processes
2011/08/24 15:50:20 [notice] 10723#0: start worker process 14266
2011/08/24 15:50:20 [notice] 10723#0: start worker process 14267
2011/08/24 15:50:20 [notice] 10723#0: start cache manager process 14268
2011/08/24 15:50:20 [alert] 14268#0: epoll_ctl(1, 0) failed (1:
Operation not permitted)
2011/08/24 15:50:20 [alert] 14268#0: failed to register channel handler
while initializing push module worker (1: Operation not permitted)
2011/08/24 15:50:20 [notice] 10723#0: start cache loader process 14269
2011/08/24 15:50:21 [notice] 13923#0: gracefully shutting down
2011/08/24 15:50:21 [notice] 13924#0: gracefully shutting down
2011/08/24 15:50:20 [alert] 14269#0: epoll_ctl(1, 0) failed (1:
Operation not permitted)
2011/08/24 15:50:20 [alert] 14269#0: failed to register channel handler
while initializing push module worker (1: Operation not permitted)
2011/08/24 15:50:21 [notice] 10723#0: signal 17 (SIGCHLD) received
2011/08/24 15:50:21 [notice] 10723#0: cache manager process 14268 exited
with code 2
2011/08/24 15:50:21 [alert] 10723#0: cache manager process 14268 exited
with fatal code 2 and can not be respawn
2011/08/24 15:50:21 [notice] 10723#0: signal 17 (SIGCHLD) received
2011/08/24 15:50:21 [notice] 10723#0: cache loader process 14269 exited
with code 2
2011/08/24 15:50:21 [notice] 10723#0: signal 29 (SIGIO) received


proxy_cache_path /var/www/cache/downloads levels=1:1:1
keys_zone=downloads:1m max_size=6144m inactive=45m;
proxy_cache_valid 200 25m;
proxy_cache_valid 404 1m;


What's really quite odd is the disk usage doesn't just go up, it goes
down occasionally too!


This is nginx-extras-1.1.0-1 from debian testing.

Mike

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214067,214262#msg-214262



More information about the nginx mailing list