Welcome! Log In Create A New Profile

Advanced

nginx fastcgi_cache not freeing deleted items causing excessive disk usage

June 05, 2016 11:32AM
Hello,

I'm using nginx 1.10.0 and the nginx_fastcgi_cache option. I've noticed that with a high amount of requests per second (I'm not sure when it occurs exactly, but we have ~2500RPS with about 2Gbit/s of outgoing traffic responses) there is an issue with the fastcgi_cache files not being freed. lsof shows a huge amount of files as (deleted) but the space it not being freed. Eventually the entire partition fills up like this.

The keys_zone and max_size are both set to 500m
The fastcgi_cache_valid is set to 1m

Even when the server is idle for a while (30+ minutes) the space is not being freed. Obviously restarting nginx manually immediately frees the space.

Is this a bug or is there a setting I can use to perform some sort of garbage collection?

Cheers,
Niels
Subject Author Posted

nginx fastcgi_cache not freeing deleted items causing excessive disk usage

b4a456fb-1402 June 05, 2016 11:32AM

Re: nginx fastcgi_cache not freeing deleted items causing excessive disk usage

Maxim Dounin June 06, 2016 06:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 55
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready