<div dir="ltr"><div><div><div><div>Hello,<br><br></div> We are using nginx to serve large size of static files i.e jpg,flv and mp4 . Nginx stream works very well on 1000~1500 concurrent connections but whenever connections exceeded to 2000~2200, stream gets too slow. We've five content server with following specification:-<br>
<br></div>Dual Quard Core (8cores/16threads)<br></div>RAM = 32G<br></div>HDD = Sas Hard-Raid 10<br><div><div><div><br><br>My nginx.conf config is given below :<br><br>user nginx;<br>worker_processes 16;<br>worker_rlimit_nofile 300000; #2 filehandlers for each connection;<br>
<br>#pid logs/nginx.pid;<br><br><br>events {<br> worker_connections 6000;<br> use epoll;<br>}<br>http {<br> include mime.types;<br> default_type application/octet-stream;<br></div><div> limit_rate 180k;<br>
</div><div> client_body_buffer_size 128K;<br> sendfile_max_chunk 128k;<br> server_tokens off; #Conceals nginx version<br> access_log off;<br> sendfile on;<br> client_header_timeout 3m;<br> client_body_timeout 3m;<br>
send_timeout 3m;<br> keepalive_timeout 0;<br><br></div><div>If somebody can help me improving nginx config will be helpful to him. I apologize for bad engish :D<br></div></div></div></div>