Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
большой rps во внутренней сет и, маленький наружу
- To: nginx-ru@xxxxxxxxx
- Subject: большой rps во внутренней сет и, маленький наружу
- From: Sergey Shepelev <temotor@xxxxxxxxx>
- Date: Sun, 22 Nov 2009 17:26:09 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=Skxpud0zALKDMsqBcAiSVAPtwyrAioadgikIu3q2ux8=; b=Qkvfna1hwpgjAzDGJU4UPgTYufJ9ln6dThNTTxlz5QryHRaAZdu2405uKm7GZUyAxM h/mWTN9bNvqsplmq/pyUIN5yW7pCdx4fZ4vvKWsXQAv3mSM1ZjUI3FuAaHKVAZXut+PA ZeLDUGAEgDKTMmZ40jUVTyLuLoegZbbu1l4ls=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=uGjii3dOs+dm5eJckX/TPAXDT8OCGlR4tojNoUDY1pYdKGbTBvTTIyYrHXxAbc3vH7 MraUAzzJ0DqO5blK7MYyr539AJnlTn5wnwkZinFy5OcBQt5V9sm4evzOAMeNhtEzPCu7 1D8hE8z9obP5ggFUl1vqDTbQ2/5I3uCB3dV50=
Здравствуйте.
Имеется XEN виртуалка с Linux Debian Lenny. На ней nginx 0.7.64. Он
проксирует на python/fastcgi.
ab -c 3 -n 1000 http://ip.ip.ip.ip/ с соседней виртуалки даёт 402rps.
Снаружи (тестил из дома) та же команда даёт 7-9 rps.
Не знаю где/как искать причину, помогите, пожалуйста.
Несколько переменных из sysctl:
net.core.somaxconn = 128
net.core.rmem_default = 109568
net.core.wmem_default = 109568
net.core.rmem_max = 131071
net.core.wmem_max = 131071
net.ipv4.tcp_rmem = 4096 87380 2097152
net.ipv4.tcp_wmem = 4096 16384 2097152
net.ipv4.tcp_mem = 49152 65536 98304
nginx.conf:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
include fastcgi_params;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_types text/css application/x-javascript;
server {
listen 80;
location / {
client_max_body_size 1m;
fastcgi_pass unix:/home/victor/run/dym.sock;
}
location /robots.txt {
alias /home/victor/dym/robots.txt;
}
location /static {
expires 30d;
alias /home/victor/dym/static;
}
}
}
|