Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Странное поведение proxy cache
- To: nginx-ru@xxxxxxxxx
- Subject: Странное поведение proxy cache
- From: "justcyber" <nginx-forum@xxxxxxxx>
- Date: Sat, 05 Apr 2014 08:10:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selenium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=m5Y0XylpXA3pUwdGK1XFDpf9al7zJc/dW791NGsNkfo=; b=MgLYeZC4DoL1k59nJe/933qry0S64wkLN6k/9V0ZU0hVMn95x+/flbJxwJI9At+npWQBgcRWR3wzn2wxzUv/XDWmaov3Ha1bXSo5HLAuiyJ0njROEkLncFT5yDmQE/+jhdZa0cDI7vrv1v0l+SUihOrz89Jvw7sBeAGG5dXLFXw=;
Имеется конструкция для кеширования всего сайта:
proxy_cache_path /var/cache/nginx/cache levels=2:2
keys_zone=memproxy:10m max_size=3072m inactive=3h;
proxy_temp_path /var/cache/nginx/proxy;
proxy_cache_key "$scheme://$host$request_uri";
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_valid 200 301 302 304 1m;
proxy_cache_valid 404 502 503 1m;
proxy_cache_methods GET HEAD POST;
client_max_body_size 255M;
location / {
limit_conn perip 80;
limit_req zone=hostreqlimit burst=1100 nodelay;
default_type text/html;
proxy_pass http://127.0.0.1:81;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_buffers 256 4k;
proxy_max_temp_file_size 0k;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header realip $remote_addr;
proxy_ignore_headers "Cache-Control" "Expires";
proxy_cache memproxy;
add_header X-Cache-Status $upstream_cache_status;
}
Однако каждую минуту на бэкенд (который proxy_pass http://127.0.0.1:81;)
поступает вместо одного запроса для главной страницы, штук 50-300. В чем
может быть проблема?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,249033,249033#msg-249033
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|