<div dir="ltr">Thanks for helping me out guyz but w're already dealing with 3-app servers clustering with haproxy load balancer (For this video streaming site), and can't afford another clustering type things. You're talking about Haproxy load-balancer to split required flv files requests to different servers. We'll have to buy 5 more content servers for mirroring data between every two servers to split load-balancer requests but the problem is we're running out of budget. If you can provide me some alternate to this problem?<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 6:33 PM, Geoffrey Hartz <span dir="ltr"><<a href="mailto:hartz.geoffrey@gmail.com" target="_blank">hartz.geoffrey@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It will not help you actualy but I had a similar experience.<br>
<br>
My issue was due to the system event handle (epoll, kqueue...)<br>
<br>
I noticed poor speed when hitting 2000 connections with haproxy. So I<br>
switch to nginx + tcp module proxy. Same results..<br>
<br>
But using haproxy + nginx (with two different event handler, I avoid<br>
the speed problem). At the end, I prefered use ESXi and 2/3 VM and<br>
split connections with DNS load balancing<br>
<br>
Maybe you should take a look at this event handler problem and do some<br>
tunning on kernel/OS. Nginx (maybe) isn't the actual issue.<br>
<br>
2013/1/23 shahzaib shahzaib <<a href="mailto:shahzaib.cb@gmail.com">shahzaib.cb@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> The average size of each flv video is 60Mb+. We've five content servers<br>
> (nginx-1.2.1), each with 1Gbps port and 100TB bandwidth per month. Right now<br>
> each server is consuming 10~12 bandwidth per day and we're going to run out<br>
> of bandwidth on coming last days of month. However we limited every<br>
> connection to 180k, you can see limit_rate 180k; in nginx.conf file.<br>
><br>
> I am newbie to this field. Please correct me if i didn't satisfy your<br>
> question regarding bandwidth. :)<br>
><br>
><br>
> On Wed, Jan 23, 2013 at 5:39 PM, Dennis Jacobfeuerborn<br>
> <<a href="mailto:dennisml@conversis.de">dennisml@conversis.de</a>> wrote:<br>
>><br>
>> On 01/23/2013 10:43 AM, shahzaib shahzaib wrote:<br>
>> > Hello,<br>
>> ><br>
>> > We are using nginx to serve large size of static files i.e<br>
>> > jpg,flv<br>
>> > and mp4 . Nginx stream works very well on 1000~1500 concurrent<br>
>> > connections<br>
>> > but whenever connections exceeded to 2000~2200, stream gets too slow.<br>
>> > We've<br>
>> > five content server with following specification:-<br>
>> ><br>
>> > Dual Quard Core (8cores/16threads)<br>
>> > RAM = 32G<br>
>> > HDD = Sas Hard-Raid 10<br>
>> ><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>
>> > limit_rate 180k;<br>
>> > 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>
>> > If somebody can help me improving nginx config will be helpful to him. I<br>
>> > apologize for bad engish :D<br>
>><br>
>> What's the required bandwidth for the flv files? What is the bandwidth of<br>
>> the connection of the system? What is the bandwidth of the uplink to the<br>
>> Internet?<br>
>><br>
>> Regards,<br>
>> Dennis<br>
>><br>
>> _______________________________________________<br>
>> nginx mailing list<br>
>> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
>> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Geoffrey HARTZ<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div></div>