Welcome! Log In Create A New Profile

Advanced

nginx + openvz + cache

Alexey Mykhailov
March 22, 2010 02:00PM
Добрый день!
попробовал включить кеширование на VM openvz

c таким вот конфигом
upstream wp {
server 10.44.0.104:8080;
server 10.44.0.105:8080;
}
proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=my_cache:10m
max_size=1024 inactive=1d;

server {
listen 80;
server_name example.com;
access_log /var/log/nginx/wp_access.log;
error_log /var/log/nginx/wp_error.log;
location /wp-content/ {
proxy_pass http://wp/wp-content/;
proxy_pass_header Cookie;
proxy_cache my_cache;
proxy_cache_valid 200 3h;
proxy_cache_valid any 0;
proxy_cache_use_stale updating error timeout
invalid_header http_500 http_502 http_503 http_504 http_404;
proxy_cache_key
"$scheme$proxy_host$uri$is_args$args$cookie_sid";
}


в итоге после первого запроса nginx cache manager process съедает 100 CPU
strace показывает только это
.........
gettimeofday({1269280674, 146703}, NULL) = 0
gettimeofday({1269280674, 146814}, NULL) = 0
gettimeofday({1269280674, 146938}, NULL) = 0
gettimeofday({1269280674, 147114}, NULL) = 0
gettimeofday({1269280674, 147235}, NULL) = 0
gettimeofday({1269280674, 147356}, NULL) = 0
gettimeofday({1269280674, 147495}, NULL) = 0
.............



_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx + openvz + cache

Alexey Mykhailov March 22, 2010 02:00PM

Re: nginx + openvz + cache

Olexander Shtepa March 22, 2010 02:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready