Quantcast
Viewing all articles
Browse latest Browse all 3102

Nginx необоснованно удаляет кэш. (no replies)

Приветствую, помогите разобраться. Как-то странно происходит удаление.
Наступает какой-то момент и кэш, скажем с 900ГБ просто напросто уменьшается до 350ГБ в течении нескольких минут, не успевая пожить даже суток, не то что 7 дней.

# df -i /cache
Filesystem     Inodes         IUsed         IFree      IUse% Mounted on
/dev/sdb1  763523840     249820  763274020   1%        /cache
nginx version: nginx/1.11.7

proxy_cache_path /cache/nginx levels=2:2:2 keys_zone=mycache:1024m max_size=3500g inactive=165h use_temp_path=off;

location / {
  proxy_cache mycache;
  proxy_cache_key $uri;
  proxy_cache_valid 200 206 100d;
  proxy_cache_lock on;
  proxy_cache_lock_age 4s;
  proxy_cache_lock_timeout 4s;
  proxy_set_header Host $host;
  proxy_set_header Connection "";
  proxy_ignore_headers Expires Cache-Control X-Accel-Expires Set-Cookie Vary;
  proxy_next_upstream error timeout http_404;
  proxy_http_version 1.1;
  proxy_pass https://myupstreams;
}


--
Paralon Paralonovich_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Viewing all articles
Browse latest Browse all 3102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>