Configuration issues with 100-150MB files downloads causing high CPU usage..
brad at ftwentertainment.com
Sat Nov 3 21:45:18 UTC 2012
Hello, I'm hoping someone would be able to assist in my dilemma, I've searched for a few weeks on a fix with no success.. I run Nginx in proxy pass-through mode to apache.. (I hope I got the right terminology..), but basically, we've been seeing issues with our Media server, where once we start getting enough requests to make the bandwidth get above 100mbit, we start seeing drops on our cacti graphs.. when i can get online as the time, I notice that Nginx is utilizing a ton of CPU causing the server to slow down considerably.. I'm worried that my configuration has some issues and I would really appreciate the help from the community. Details on the server, brand new dell r515 (6 cores, 16GB RAM, 2 15K SAS drives for the os in a RAID 0, 12 2TB HDDs in a RAID 6 for the media). Average file size is 120MB, they don't deviate more than +/-5% of that size.. so it's quite consistent..
Here is the config we use.. We have a custom built CDN that uses nginx, and we can get the same files served over 120mbit with no issues.. so I'm sure it's something I tweaked that is wrong..
error_log /var/log/nginx/error.log info;
worker_connections 5120; # increase for busier servers
use epoll; # you should use epoll here for Linux kernels 2.6.x
gzip_disable "MSIE [1-6]\.";
gzip_buffers 16 8k;
large_client_header_buffers 4 256k;
output_buffers 4 64k;
log_format bytes_log "$msec $bytes_sent .";
Thank you again for any help, I'm including graphs from the last 24 hours, you can see the system have hiccups when the amount of downloads gets to a certain point..
FTW Entertainment LLC
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx