<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"><<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>></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 <<a href="mailto:reddvinylene@gmail.com">reddvinylene@gmail.com</a>> wrote:<br>
> Is there any chance nginx' load balancing will ever be as good as haproxy?<br>
><br>
> On Wed, Jul 30, 2008 at 7:19 PM, Brian Gupta <<a href="mailto:brian.gupta@gmail.com">brian.gupta@gmail.com</a>> wrote:<br>
> > On Mon, Jul 28, 2008 at 8:57 AM, Patrick Viet <<a href="mailto:patrick.viet@gmail.com">patrick.viet@gmail.com</a>> wrote:<br>
> >> Yes : don't use haproxy.<br>
> >> Why would you want to use haproxy over nginx when nginx can already do your<br>
> >> balancing ?<br>
> >> Sure, haproxy is a little faster than nginx, but if nginx is there anyway,<br>
> >> just use it.<br>
> >> That will definitely be lighter.<br>
> ><br>
> > Nginx's load balancing algorithm's is fairly simplistic. If you are<br>
> > going to be seeing any sort of sustained traffic, and are running with<br>
> > more than 2 or three backend mongrels, Rails can really benefit from<br>
> > haproxy's ability to limit connections to a single connection per back<br>
> > end rails/mongrel instance. (Fro those that don't know each backend<br>
> > Rails instance is a single threaded app. So they can only handle one<br>
> > web request at at time. If more are sent the go into a block IO wait<br>
> > state.)<br>
> ><br>
> > Where this really helps is when a web request that initiates a 10-30<br>
> > second database query. The slow web request isn't gonna stall any<br>
> > other web traffic as haproxy won't send any additional traffic to that<br>
> > webserver instance until that request either times out or is<br>
> > fulfilled.<br>
> ><br>
> > In addition for those cases when you have bursts of traffic that<br>
> > temporarily overwhelm your backend, Haproxy queues those overflow<br>
> > connections on the front end and then drains them off to the backend<br>
> > mongrels in the most efficient and expedient manner. (So the end user<br>
> > experience is the best).<br>
> ><br>
> > That all said, I still run with nginx in front of haproxy to intercept<br>
> > statics, and do SSL offload.<br>
> ><br>
> > Cheers,<br>
> > Brian<br>
> ><br>
> > P.S. - It all really depends. You might want to start with just<br>
> > haproxy, if it is a small internal site, but if you plan to see any<br>
> > level of internet scale traffic, you are really gonna want to add<br>
> > haproxy into the mix.<br>
> ><br>
> >><br>
> >> Patrick<br>
> >><br>
> >> On Mon, Jul 28, 2008 at 2:21 PM, Redd Vinylene <<a href="mailto:reddvinylene@gmail.com">reddvinylene@gmail.com</a>><br>
> >> wrote:<br>
> >>><br>
> >>> Hi there!<br>
> >>><br>
> >>> I'm working on my first HAProxy, NGINX and Rails setup, and I was<br>
> >>> wondering if anybody could help me improve my configuration:<br>
> >>><br>
> >>> <a href="http://pastie.org/242411" target="_blank">http://pastie.org/242411</a><br>
> >>><br>
> >>> I wish to keep things as simple as possible, but from what I hear, I'm<br>
> >>> lacking quite a few "exciting" options ;)<br>
> >>><br>
> >>> -- Redd Vinylene <a href="http://www.home.no/reddvinylene" target="_blank">http://www.home.no/reddvinylene</a><br>
> >><br>
> >><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > - Brian Gupta<br>
> ><br>
> > <a href="http://opensolaris.org/os/project/nycosug/" target="_blank">http://opensolaris.org/os/project/nycosug/</a><br>
> ><br>
> > <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>
> ><br>
><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>the sun shines for all<br>
</div>