<div dir="ltr"><div>Hello,<br><br></div> We're using nginx-1.2.8 to stream large files size 1G but found the slow stream with high utilization of harddrive using command "iostat -x -d 3"<br><br><div> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
sdc 0.00 444.00 78.67 7.00 18336.00 3608.00 256.16 3.28 39.17 11.02 94.40<br> sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00<br>
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00<br><br></div><div>16G Ram<br></div><div>8X CPU E31240<br></div><div>HDD SATA<br></div><div><br>Following are the main nginx configuration :-<br>
<br>http {<br> include mime.types;<br> default_type application/octet-stream;<br> #tcp_nopush on;<br> client_body_buffer_size 128k;<br> client_header_buffer_size 128k;<br> client_max_body_size 1200M;<br>
keepalive_timeout 10;<br> ignore_invalid_headers on;<br> client_header_timeout 3m;<br> client_body_timeout 3m;<br> send_timeout 3m;<br> reset_timedout_connection on;<br> #gzip on;<br> access_log off;<br>
include /usr/local/nginx/conf/vhosts/*;<br><br>}<br></div><div><br></div><div><br></div><div>Would be very thankful If someone could help me with better configuration of nginx to reduce HDD-utilization.<br><br></div><div>
Best Regards.. <br></div></div>