А РХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: fast-cgi cache
To : nginx-ru@xxxxxxxxx
Subject : Re: fast-cgi cache
From : greenh <greenh@xxxxxxxxx >
Date: Fri, 8 Apr 2011 18:28:49 +0300
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fD91iRHE5qWlJ4M486hKs7KX/V4T7amMJ/iHhmUYslw=; b=p66cQX1LnNWXoF0C2XtMVMrGLln2G8JWVnYL0oaYcSgETavu7Yq4vtuByVpKUq0eGm D1LuYb2qU/sB5vhU4WRTPri0RxfRkZ16WyhodvZQuml2XP2Ag1gA35siXKwFnwkIrwIJ ZJ+iNn0zS3wtAh2RLzKxoUjcnMyO4B+WsXJkI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GfX905hjnmKBeQ0Dq9JoHZ4FjlHr3aKoJ/tCBvS8d1+avb+ZsDfJvx5C+jSextZS3h r4uwe2HChKnBe26JG52wlV/oM42AQmaWYGcgdmN5Ghbmxi66qnh7NI/GaZltsHxuSK/t Opusm+yTGCppYIYwVxGe+jzEpky8VPcrEQyQc=
In-reply-to: <BANLkTikmdbwfHcDx_qn0PUZmxxZtS0F6cw@xxxxxxxxxxxxxx >
References: <BANLkTikmdbwfHcDx_qn0PUZmxxZtS0F6cw@xxxxxxxxxxxxxx >
Сорри, забыл конфиг user www www; worker_processes 6; worker_rlimit_nofile 32768; pid /var/run/nginx.pid; events { worker_connections 32768; use kqueue; } http { limit_zone lconn $binary_remote_addr 10m;
default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent"'; #"$http_x_forwarded
log_format shit '$host $remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent"'; #"$http_x_for client_header_timeout 600;
client_body_timeout 600; send_timeout 1200; proxy_read_timeout 180; proxy_connect_timeout 180; proxy_send_timeout 180; proxy_buffer_size 8k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 256k;
gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/plain application/x-_javascript_ text/css; client_max_body_size 950m; client_body_buffer_size 128k; client_header_buffer_size 1k; large_client_header_buffers 4 4k;
sendfile on; tcp_nopush on; tcp_nodelay on; output_buffers 1 32k; postpone_output 1460; lingering_time 30; lingering_timeout 6; reset_timedout_connection on; keepalive_timeout 5; optimize_server_names on;
server_names_hash_bucket_size 64; #access_log /var/log/nginx-access.log main; include mime.types; include virtual.conf; server { listen *:80; server_name xxx.com root /home/xxx.xom
source_charset utf-8; charset utf-8; index index.php; location ~ .php$ {fastcgi_pass unix:/home/xxx.com/run/fastcgi.sock ; fastcgi_index index.php;
fastcgi_param PHPRC "/home/xxx.com/php "; fastcgi_param SCRIPT_FILENAME /home/xxx.com/xxx.com$fastcgi_script_name ;
include fastcgi_params; source_charset utf-8; charset utf-8; } } }2011/4/8 greenh
<greenh@xxxxxxxxx >
Заметил, что в какие то моменты (обычно на пике трафа) nginx работой с fast-cgi cache начал очень плотно грузить винт (gstat показыват стабильно 100%)
решил попробовать вынести его на рамдиск, но выяснилось, что в течении полу часа он отъедает 4,5 гига места, и на этом рамдиск оканчивается
Подскажите плз, правильное ли это поведение nginx и что делать в такой ситуации?
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru