Estou executando um servidor NGINX / 1.8 no Centos6.6 com vários processos_de_usuários, no entanto, enquanto observo o iotop, percebo que eles aumentam para 1918kb / s. Velocidade de leitura e raramente se de todo ultrapassar esse limite.
Eu quero ser capaz de ler meus arquivos e atendê-los mais rápido (eu estou servindo arquivos grandes), este é um limite de Linux que eu possa ter em processos ou isso é uma configuração incorreta do meu servidor nginx.
Total DISK READ: 7.49 M/s | Total DISK WRITE: 0.00 B/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
8840 be/4 nginx 1917.09 K/s 0.00 B/s 0.00 % 0.00 % nginx: worker process
9035 be/4 nginx 1917.09 K/s 0.00 B/s 0.00 % 0.00 % nginx: worker process
9051 be/4 nginx 1917.09 K/s 0.00 B/s 0.00 % 0.00 % nginx: worker process
9058 be/4 nginx 1917.09 K/s 0.00 B/s 0.00 % 0.00 % nginx: worker process
/etc/nginx/nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 4000;
accept_mutex off;
use epoll;
}
worker_rlimit_nofile 100000;
http {
include /etc/nginx/mime.types;
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_for"';
#access_log /var/log/nginx/access.log main;
access_log off;
access_log off;
sendfile on;
sendfile_max_chunk 1m;
tcp_nodelay on;
output_buffers 1 8m;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 2 1k;
#keepalive_timeout 0;
keepalive_timeout 65;
keepalive_requests 100000;
#gzip on;
# Load config files from the /etc/nginx/conf.d directory
# The default server is in conf.d/default.conf
include /etc/nginx/conf.d/*.conf;
open_file_cache max=20000 inactive=1m;
open_file_cache_valid 1m;
open_file_cache_min_uses 1;
open_file_cache_errors on;
}
Tags performance nginx linux centos