Welcome! Log In Create A New Profile

Advanced

Re: fast-cgi cache

greenh
April 08, 2011 11:30AM
Сорри, забыл конфиг
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@gmail.com>

> Заметил, что в какие то моменты (обычно на пике трафа) nginx работой с
> fast-cgi cache начал очень плотно грузить винт (gstat показыват стабильно
> 100%)
> решил попробовать вынести его на рамдиск, но выяснилось, что в течении полу
> часа он отъедает 4,5 гига места, и на этом рамдиск оканчивается
> Подскажите плз, правильное ли это поведение nginx и что делать в такой
> ситуации?
>
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

fast-cgi cache

greenh April 08, 2011 11:26AM

Re: fast-cgi cache

greenh April 08, 2011 11:30AM

Re: fast-cgi cache

greenh April 09, 2011 09:10AM

Re: fast-cgi cache

stitrace April 09, 2011 03:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 273
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready