nginx cache issue

Vladimir Getmanshchuk vladget на gmail.com
Вс Ноя 6 18:20:12 UTC 2016


Отбой :)

On Sun, Nov 6, 2016 at 7:27 PM, Vladimir Getmanshchuk <vladget на gmail.com>
wrote:

> Добрый вечер, тут какой то ад, не работает кеш, уже более часа потратил:
>
> *# *nginx -V
>
> nginx version: nginx/1.10.0 (Ubuntu)
>
> built with OpenSSL 1.0.2g  1 Mar 2016
>
> TLS SNI support enabled
>
> configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong
> -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2'
> --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro
> -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf
> --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log
> --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid
> --http-client-body-temp-path=/var/lib/nginx/body
> --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
> --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi
> --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit
> --with-ipv6 --with-http_ssl_module --with-http_stub_status_module
> --with-http_realip_module --with-http_auth_request_module
> --with-http_addition_module --with-http_dav_module --with-http_geoip_module
> --with-http_gunzip_module --with-http_gzip_static_module
> --with-http_image_filter_module --with-http_v2_module
> --with-http_sub_module --with-http_xslt_module --with-stream
> --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-threads
>
>
> *# *grep catalog  /etc/nginx/conf.d/proxy.conf
>
> proxy_cache_path /dev/shm/nginx_cache_*catalog*_microservice levels=1:2
> keys_zone=*catalog*_microservice:500m inactive=30d max_size=1G;
>
>
> из vhost:
>
>
>     location /v2/categories/parents/ {
>
>       access_log  /var/log/nginx/access_monitoring.log monitoring
> buffer=16k;
>
>       proxy_cache catalog_microservice;
>
>       proxy_cache_key "$request_method$host$request_uri";
>
>       proxy_ignore_headers "Cache-Control" "Expires";
>
>       proxy_cache_valid 200 10m;
>
>       proxy_pass http://app-backend;
>
>     }
>
>
>
> *# *curl -XGET -I http://catalog.my.site/v2/categories/parents/1164?
> country_id=8
>
> HTTP/1.1 200 OK
>
> Server: nginx/1.10.0 (Ubuntu)
>
> Date: Sun, 06 Nov 2016 17:25:19 GMT
>
> Content-Type: application/json; charset=UTF-8
>
> Content-Length: 710
>
> Connection: keep-alive
>
> Access-Control-Allow-Origin: *
>
> Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS
>
> Access-Control-Allow-Headers: Content-Type, Authorization
>
> *# *find /dev/shm/nginx_cache_catalog_microservice/  -type f | wc -l
>
> 0
>
>
>
> --
> Yours sincerely,
> Vladimir Getmanshchuk
>



-- 
Yours sincerely,
Vladimir Getmanshchuk
----------- следущая часть -----------
Вложение в формате HTML было извлечено…
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20161106/048760b8/attachment.html>


Подробная информация о списке рассылки nginx-ru