Paralon Paralonovich
February 04, 2017 08:46AM
Приветствую, помогите разобраться. Как-то странно происходит удаление.
Наступает какой-то момент и кэш, скажем с 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
Subject Author Posted

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

Paralon Paralonovich February 04, 2017 08:46AM

Re: Nginx необоснованно удаляет кэш.

Maxim Dounin February 10, 2017 11:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready