Welcome! Log In Create A New Profile

Advanced

A few problems nginx cache

Posted by toadzhou 
A few problems nginx cache
January 29, 2013 10:14PM
hi!
Please forgive me I can't speak English!!!-_-!

data0 800G
proxy_temp_path /data0/nginx_temp 1 2;
proxy_cache_path /data0/nginx_cache levels=1:2 keys_zone=cache_one:10240m inactive=1d max_size=600g;

我max_size设置成600g他还是会把data0给我占满 分析了一下原因:
root@debian:/data0# du -sh nginx_*
551G nginx_cache #这里没有超过max_size的值,所以不会进行LRU算法。
201G nginx_temp #而这个目录最好是和nginx_cache放在一个目录下面,因为同一个分区移动比较快。

希望下一个版本 能在这个地方有所改进。我目前的做法是:
proxy_temp_path /data0/nginx_cache/nginx_temp 1 2; #把temp放到cache目录里面,如果他是检测cache的目录的话 应该会有用。我还在试。。。
proxy_cache_path /data0/nginx_cache levels=1:2 keys_zone=cache_one:10240m inactive=1d max_size=600g;


I hope you can be roughly know what I mean!!!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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