Добрый день. Есть сервер с 2 SSD под кеш
Filesystem Size Used Avail Use% Mounted on /dev/sdb1 210G 167G 44G 80% /ssd2 /dev/sda3 200G 157G 44G 79% /ssd и следующий конфиг: proxy_cache_path /ssd levels=1:2 keys_zone=ssd1:2000m max_size=160000m inactive=7d loader_files=1000 use_temp_path=off; proxy_cache_path /ssd2 levels=1:2 keys_zone=ssd2:2000m max_size=170000m inactive=7d loader_files=1000 use_temp_path=off; split_clients $uri$is_args$args $disk { 56.3% 2; * 1; } server { ... location / { proxy_cache ssd$disk; } } Периодически кеш разрастается выше лимита, пока не занимает весь диск. При рестарте nginx место очищается до максимально разрешенного nginx -V nginx version: nginx/1.9.3 built by gcc 4.9.2 (Debian 4.9.2-10) built with OpenSSL 1.0.2d 9 Jul 2015 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_spdy_module --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' --with-ld-opt=-Wl,-z,relro --with-ipv6 --with-http_image_filter_module --with-openssl=/usr/src/openssl-1.0.2d -- Рустам
_______________________________________________ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru