<div dir="ltr">Отбой :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 6, 2016 at 7:27 PM, Vladimir Getmanshchuk <span dir="ltr"><<a href="mailto:vladget@gmail.com" target="_blank">vladget@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Добрый вечер, тут какой то ад, не работает кеш, уже более часа потратил:<div><br><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b># </b></span><span style="font-variant-ligatures:no-common-ligatures">nginx -V</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">nginx version: nginx/1.10.0 (Ubuntu)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">built with OpenSSL 1.0.2g 1 Mar 2016</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">TLS SNI support enabled</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)">
</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">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-<wbr>functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.<wbr>conf --http-log-path=/var/log/<wbr>nginx/access.log --error-log-path=/var/log/<wbr>nginx/error.log --lock-path=/var/lock/nginx.<wbr>lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/<wbr>var/lib/nginx/body --http-fastcgi-temp-path=/var/<wbr>lib/nginx/fastcgi --http-proxy-temp-path=/var/<wbr>lib/nginx/proxy --http-scgi-temp-path=/var/<wbr>lib/nginx/scgi --http-uwsgi-temp-path=/var/<wbr>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_<wbr>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_<wbr>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</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b><br></b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b># </b></span><span style="font-variant-ligatures:no-common-ligatures">grep catalog /etc/nginx/conf.d/proxy.conf </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">proxy_cache_path /dev/shm/nginx_cache_</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)"><b>catalog</b></span><span style="font-variant-ligatures:no-common-ligatures">_<wbr>microservice levels=1:2 keys_zone=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)"><b>catalog</b></span><span style="font-variant-ligatures:no-common-ligatures">_<wbr>microservice:500m inactive=30d max_size=1G;</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">из vhost:</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> location /v2/categories/parents/ {</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> access_log /var/log/nginx/access_<wbr>monitoring.log monitoring buffer=16k;</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> proxy_cache catalog_microservice;</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> proxy_cache_key "$request_method$host$request_<wbr>uri";</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> proxy_ignore_headers "Cache-Control" "Expires";</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> proxy_cache_valid 200 10m;</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> proxy_pass <a href="http://app-backend" target="_blank">http://app-backend</a>;</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">
</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b># </b></span><span style="font-variant-ligatures:no-common-ligatures">curl -XGET -I <a href="http://catalog.my.site/v2/categories/parents/1164?country_id=8" target="_blank">http://catalog.my.site/v2/<wbr>categories/parents/1164?<wbr>country_id=8</a></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">HTTP/1.1 200 OK</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Server: nginx/1.10.0 (Ubuntu)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Date: Sun, 06 Nov 2016 17:25:19 GMT</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Content-Type: application/json; charset=UTF-8</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Content-Length: 710</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Connection: keep-alive</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Access-Control-Allow-Origin: *</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">
</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Access-Control-Allow-Headers: Content-Type, Authorization</span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b># </b></span><span style="font-variant-ligatures:no-common-ligatures">find /dev/shm/nginx_cache_catalog_<wbr>microservice/ -type f | wc -l</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">0</span></p></span></div><span class="HOEnZb"><font color="#888888"><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><div><br></div>-- <br><div class="m_-5338223205502796616gmail_signature">Yours sincerely,<br>Vladimir Getmanshchuk</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Yours sincerely,<br>Vladimir Getmanshchuk</div>
</div>