目前我正在使用nginx从我的网站上下载下载。 点击下载链接后,用户有时需要等待大约5秒才能开始下载。 我不知道是否需要开始使用RAID 10(我目前正在使用RAID 50),或者如果这是我的Nginxconfiguration的问题。 我也在1gb线上,但下载有时候会低至10kB / s。 我的服务器:Dual Xeon 5620 CPU,12x2TB硬盘,8GB内存。
这是我的nginx.conf
#user nobody; worker_processes 12; worker_rlimit_nofile 10240; worker_rlimit_sigpending 32768; error_log logs/error.log crit; #pid logs/nginx.pid; events { worker_connections 2048; } http { include mime.types; default_type application/octet-stream; access_log off; limit_conn_log_level info; log_format xfs '$arg_id|$arg_usr|$remote_addr|$body_bytes_sent|$status'; #sendfile on; #tcp_nopush on; reset_timedout_connection on; server_tokens off; autoindex off; keepalive_timeout 0; #keepalive_timeout 65; limit_zone one $binary_remote_addr 10m; perl_modules perl; perl_require download.pm;
这是我的iostat
avg-cpu: %user %nice %system %iowait %steal %idle 6.05 6.49 1.22 23.33 0.00 62.91 Device: rrqm/s wrqm/sr/sw/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda 1.30 31.80 257.10 11.70 47852.80 1449.90 183.42 82.50 311.28 3.72 100.00 dm-0 0.00 0.00 0.00 1.10 0.00 8.80 8.00 0.21 169.64 124.45 13.69 dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-2 0.00 0.00 251.90 41.30 46423.20 1435.50 163.23 101.98 348.08 3.31 96.96
iotop

你的监测显示了什么? 你接近最大化你的连接? 你看到高负荷? 大量的并发连接? 你的IOStat是什么样的?
没有监督,我们不可能给你任何forms的信息。 你的延迟可能是由一些不好的DNSparsing器造成的,或者你的硬盘坏掉了。