nginx cache mounted on tmpf getting fulled

omkar_jadhav_20 nginx-forum at forum.nginx.org
Wed Jan 25 07:05:32 UTC 2017


Hi,

We have used tmpfs to mount frequently used media application cache serving.
We have also mounted rest applications on disk where we are facing similar
issues of max_size being breached . Please find below details for your
reference :

# du -sh /cache/*
245G    /cache/12007
161G    /cache/12152

# grep a12007 /etc/nginx/nginx.conf
proxy_cache_path    /cache/12007 keys_zone=a12007:200m levels=1:2
max_size=200g inactive=10d;
# grep a12152 /etc/nginx/nginx.conf
proxy_cache_path    /cache/12152 keys_zone=a12152:200m levels=1:2
max_size=100g inactive=10d;

# df -Th
Filesystem                    Type      Size  Used Avail Use% Mounted on
/dev/mapper/vg_os-lv_root     ext4       99G  1.5G   92G   2% /
devtmpfs                      devtmpfs  756G     0  756G   0% /dev
tmpfs                         tmpfs     756G     0  756G   0% /dev/shm
tmpfs                         tmpfs     756G   50M  756G   1% /run
tmpfs                         tmpfs     756G     0  756G   0%
/sys/fs/cgroup
/dev/mapper/vg_os-lv_usr      ext4       99G  1.4G   92G   2% /usr
/dev/sda1                     ext4      477M  106M  343M  24% /boot
/dev/mapper/vg_cache-lv_cache ext4      1.5T  1.4T     0 100% /cache

Please let us what went wrong here and how this can be corrected.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271842,272136#msg-272136



More information about the nginx mailing list