<div dir="ltr">lol<br><br>i reached 50.000req/s with nginx on a single host with static files<br>i am wondering if there is any kind of solution which is fast like nginx and why Redd is trolling the mailing list with this<br>
<br>if you are not satisfied with nginx just use haproxy they have a mailing list as well:<br><br><a href="http://www.formilux.org/archives/haproxy/">http://www.formilux.org/archives/haproxy/</a><br><br>regards,<br>Istvan<br>
<br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 10:15 PM, mike <span dir="ltr">&lt;<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
according to wordpress, nginx was the only server that could push 8000<br>
requests/sec of real traffic (not even haproxy could do it for them)<br>
<br>
<a href="http://barry.wordpress.com/2008/04/28/load-balancer-update/" target="_blank">http://barry.wordpress.com/2008/04/28/load-balancer-update/</a><br>
<br>
in my opinion with only a couple minor enhancements nginx could easily<br>
be used as a fully-featured layer-7 capable load balancer. it can<br>
already reverse proxy, and with ncache (and maybe i thought igor said<br>
soon) it will actually act as a reverse proxy that caches/stores<br>
content too (like varnish, squid, etc) - so it will increase the<br>
utility of the single daemon even more.<br>
<div><div></div><div class="Wj3C7c"><br>
On 7/30/08, Redd Vinylene &lt;<a href="mailto:reddvinylene@gmail.com">reddvinylene@gmail.com</a>&gt; wrote:<br>
&gt; Is there any chance nginx&#39; load balancing will ever be as good as haproxy?<br>
&gt;<br>
&gt; On Wed, Jul 30, 2008 at 7:19 PM, Brian Gupta &lt;<a href="mailto:brian.gupta@gmail.com">brian.gupta@gmail.com</a>&gt; wrote:<br>
&gt; &gt; On Mon, Jul 28, 2008 at 8:57 AM, Patrick Viet &lt;<a href="mailto:patrick.viet@gmail.com">patrick.viet@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt; Yes : don&#39;t use haproxy.<br>
&gt; &gt;&gt; Why would you want to use haproxy over nginx when nginx can already do your<br>
&gt; &gt;&gt; balancing ?<br>
&gt; &gt;&gt; Sure, haproxy is a little faster than nginx, but if nginx is there anyway,<br>
&gt; &gt;&gt; just use it.<br>
&gt; &gt;&gt; That will definitely be lighter.<br>
&gt; &gt;<br>
&gt; &gt; Nginx&#39;s load balancing algorithm&#39;s is fairly simplistic. If you are<br>
&gt; &gt; going to be seeing any sort of sustained traffic, and are running with<br>
&gt; &gt; more than 2 or three backend mongrels, Rails can really benefit from<br>
&gt; &gt; haproxy&#39;s ability to limit connections to a single connection per back<br>
&gt; &gt; end rails/mongrel instance. &nbsp;(Fro those that don&#39;t know each backend<br>
&gt; &gt; Rails instance is a single threaded app. So they can only handle one<br>
&gt; &gt; web request at at time. If more are sent the go into a block IO wait<br>
&gt; &gt; state.)<br>
&gt; &gt;<br>
&gt; &gt; Where this really helps is when a web request that initiates a 10-30<br>
&gt; &gt; second database query. The slow web request isn&#39;t gonna stall any<br>
&gt; &gt; other web traffic as haproxy won&#39;t send any additional traffic to that<br>
&gt; &gt; webserver instance until that request either times out or is<br>
&gt; &gt; fulfilled.<br>
&gt; &gt;<br>
&gt; &gt; In addition for those cases when you have bursts of traffic that<br>
&gt; &gt; temporarily overwhelm your backend, Haproxy queues those overflow<br>
&gt; &gt; connections on the front end and then drains them off to the backend<br>
&gt; &gt; mongrels in the most efficient and expedient manner. (So the end user<br>
&gt; &gt; experience is the best).<br>
&gt; &gt;<br>
&gt; &gt; That all said, I still run with nginx in front of haproxy to intercept<br>
&gt; &gt; statics, and do SSL offload.<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt; Brian<br>
&gt; &gt;<br>
&gt; &gt; P.S. - It all really depends. You might want to start with just<br>
&gt; &gt; haproxy, if it is a small internal site, but if you plan to see any<br>
&gt; &gt; level of internet scale traffic, you are really gonna want to add<br>
&gt; &gt; haproxy into the mix.<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Patrick<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Mon, Jul 28, 2008 at 2:21 PM, Redd Vinylene &lt;<a href="mailto:reddvinylene@gmail.com">reddvinylene@gmail.com</a>&gt;<br>
&gt; &gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hi there!<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I&#39;m working on my first HAProxy, NGINX and Rails setup, and I was<br>
&gt; &gt;&gt;&gt; wondering if anybody could help me improve my configuration:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; <a href="http://pastie.org/242411" target="_blank">http://pastie.org/242411</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I wish to keep things as simple as possible, but from what I hear, I&#39;m<br>
&gt; &gt;&gt;&gt; lacking quite a few &quot;exciting&quot; options ;)<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; -- Redd Vinylene <a href="http://www.home.no/reddvinylene" target="_blank">http://www.home.no/reddvinylene</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; - Brian Gupta<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://opensolaris.org/os/project/nycosug/" target="_blank">http://opensolaris.org/os/project/nycosug/</a><br>
&gt; &gt;<br>
&gt; &gt; <a href="http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ" target="_blank">http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>the sun shines for all<br>
</div>