<div dir="ltr">On Thu, Jul 31, 2008 at 6:04 PM, Willy Tarreau <span dir="ltr">&lt;w@1wt.eu&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Jul 31, 2008 at 03:20:09AM -0400, Brian Gupta wrote:<br>
&gt; That said, I&#39;m surprised that they selected nginx for load<br>
&gt; balancing, as they were only able to push 1.2GB of traffic through<br>
&gt; nginx. Haproxy has been tested all the way to handle a full 10GB of<br>
&gt; traffic through a single server.<br>
<br>
</div>Be very careful Brian, I think you&#39;re mixing two things. It&#39;s probable<br>
that wordpress tested on real-world traffic, while my benchmark was<br>
meant to find the absolute maximum performance. Real-world benchmarks<br>
are used to estimate the ability to do the job properly. Component<br>
benchmarks are used to find the bounds beyond which you&#39;re sure you<br>
will never go.</blockquote><div><br>Understood. I was wondering if they had haproxy properly configured. Frankly haproxy&#39;s docs are really hard to digest for newcomers, and are prolly the biggest impediment to growing the user base. It&#39;s one giant text file so you basically have to know what you are looking for already. (It&#39;s documentation geared toward advanced haproxy users and haproxy developers.) When things slow down a bit, I plan to help out with the Wiki efforts to address newbie documentation.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Now, that said, I know about people who have a handful of machines<br>
all saturating gig pipes all the day with moderate CPU usage. And<br>
judging by the workload (large transfers essentially, no problem<br>
with running one process per CPU core), it should be possible to<br>
use a 10 Gig NIC in one single machine. But this case is extreme,<br>
as most people serve smaller files. From my first series of tests,<br>
you need to serve files larger than 50kB in average to go beyond<br>
5 Gbps (that was about 13000 hits/s). And you needed an average of<br>
500kB to reach 9 Gbps.</blockquote><div><br>I thought you had posted that you saturated a 10G NIC somewhere? (Maybe I misunderstood/misremembered something.)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

You should also be aware that reaching these loads on one machine<br>
requires a lot of system tweaking. You can run out of memory in<br>
seconds, and if the system runs low on network buffers, you observe<br>
terrible performance. It&#39;s always a trade between raw performance<br>
and reliability.</blockquote><div><br>I got ya... I still say it would be interesting to see if we could improve those Wordpress testing numbers using haproxy. (Even with real world traffic it should be possible to beat 1.2Gbit/sec)<br>
&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
These days, I would say that 10Gig becomes affordable but a lot<br>
of work is required to get the best of it, while reaching gig<br>
speeds is almost a child&#39;s game.</blockquote><div><br>Key word, &quot;almost&quot;. ;)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Regards,<br>
<font color="#888888">Willy<br>
</font></blockquote></div><br>Cheers,<br>Brian<br clear="all"><br>-- <br>- Brian Gupta<br><br><a href="http://opensolaris.org/os/project/nycosug/">http://opensolaris.org/os/project/nycosug/</a><br><br><a href="http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ">http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ</a><br>

</div>