<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jeff Beard &#187; Infrastructure Management</title>
	<atom:link href="http://jeffbeard.org/category/computing/infrastructure-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffbeard.org</link>
	<description>Blog.blog</description>
	<lastBuildDate>Sun, 01 Jan 2012 17:51:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Netalyzr &#8211; Network debugging tool</title>
		<link>http://jeffbeard.org/2012/01/netalyzr-network-debugging-tool/</link>
		<comments>http://jeffbeard.org/2012/01/netalyzr-network-debugging-tool/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 17:51:29 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Infrastructure Management]]></category>

		<guid isPermaLink="false">http://jeffbeard.org/?p=440</guid>
		<description><![CDATA[I&#8217;ve had a transient issue with my Internet access randomly &#8220;going away&#8221;. It&#8217;s annoying but generally clears up within a minute or two. I came across a tool called Netalyzr by a group within UC Berkeley. Netalyzr is a Java application available as either an in-browser Applet or a command line utility. It runs a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a transient issue with my Internet access randomly &#8220;going away&#8221;. It&#8217;s annoying but generally clears up within a minute or two. I came across a tool called <a href="http://netalyzr.icsi.berkeley.edu/index.html">Netalyzr</a> by a group within UC Berkeley. Netalyzr is a Java application available as either an in-browser Applet or a command line utility. It runs a number of network connectivity tests and provides a detailed report hosted on their web site that uses a simple red/yellow/green motif to show problems and their relative importance.</p>
<p>While Netalyzr didn&#8217;t clearly show what was going on with my Internet connection it did raise a red flag about network buffers that might be the issue. Unfortunately, that&#8217;s a router configuration issue on the part of my ISP so I&#8217;m not hopeful for a resolution. But I can always gather data then open a trouble ticket with the vendor. </p>
<p>Regardless, Netalyzr looks like a great tool for troubleshooting connectivity issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffbeard.org/2012/01/netalyzr-network-debugging-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighting a fire under WordPress</title>
		<link>http://jeffbeard.org/2011/09/lighting-a-fire-under-wordpress/</link>
		<comments>http://jeffbeard.org/2011/09/lighting-a-fire-under-wordpress/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 17:30:08 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Infrastructure Management]]></category>
		<category><![CDATA[9 million hits per day]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[varnish]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://jeffbeard.org/?p=317</guid>
		<description><![CDATA[Learn how to light a fire under Wordpress and sustain 9 million hits a day with nginx, PHP-FPM, memcached and varnish. ]]></description>
			<content:encoded><![CDATA[<p>Since I moved my personal web site from <a title="Apache Roller" href="http://rollerweblogger.org/project/">Roller </a> to <a title="Wordpress" href="http://www.wordpress.org">WordPress</a> a couple of years ago, my web site had been a dog. After reading an <a title="9 Million Hits per day with 120 megs RAM" href="http://tumbledry.org/2011/08/31/9_million_hits_day_with_120">article</a> about a PHP-based web site configured to support 9 millions hits per day, and knowing through experience that my site should be significantly faster, I decided it was time to light a fire under WordPress.</p>
<p><strong><em>(Note that I&#8217;ve included gists at the bottom of the article with the important configuration files.)</em></strong><br />
<span id="more-317"></span><br />
I was using a <a title="Slicehost" href="http://www.slicehost.com">Slicehost</a> slice with a typical Apache/mod_php configuration but there wasn&#8217;t enough memory so it would start swapping with a little use which caused frequent outages. But rather than upgrade to the next sized Slice, I found that I could double my RAM for the same money simply by moving to <a title="Linode" href="http://www.linode.com/">Linode</a>. So that was the first change I made. (FWIW, I&#8217;m not suggesting this as a performance enhancement but it&#8217;s definitely a better value.)</p>
<p>Next was a series of changes, some of which were noted in the Tumbledry article, some not. The Tumbledry article was thin on details so I did the research myself and came up with a number of articles with the best being this <a title="Running WordPress with nginx, php-fpm, apc and varnish" href="http://www.cryptkcoding.com/2011/08/running-wordpress-with-nginx-php-fpm-apc-and-varnish/">article</a> on setting up nginx, PHP-FPM, APC, memcached and the W3 Total Cache WordPress plugin. The cryptkcoding article shows how to setup an <a title="Ubuntu" href="http://www.ubuntu.com">Ubuntu</a> Linux system for seriously fast WordPress performance that consumes incredible few system resources.</p>
<p>First, an ease of use feature that I discovered: someone did a build of PHP 5.3.8 for Ubuntu 10.04 LTS. Since PHP 5.3 includes PHP-FPM, you can keep everything package based. </p>
<p>To use these packages add these lines to /etc/apt/sources.lst:</p>
<pre>deb http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main
deb-src http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main</pre>
<p>After updating the sources list, run this command to update the apt cache:</p>
<pre class="brush: bash; title: ; notranslate">
sudo apt-get update
</pre>
<p>(For more details on using these packages, as well as setting up a similar system, checkout <a href="http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian">this</a> HowToForge article. In particular, there are some useful comments at the bottom.)</p>
<p>Anyway, one of the main features of this setup was swapping out the <a href="http://httpd.apache.org">Apache web server</a> for nginx and PHP-FPM. Like most PHP developers, Apache and mod_php has been the default setup for PHP applications for years. However, I can now vouch for the nginx/PHP-FPM combo as both stable and fast production environment. (I will try out this combo for development on my next PHP project to see how it works.) </p>
<p>Importantly, the system now uses a UNIX socket for the connection between the web and application servers rather than TCP/IP. That means that for the core application and web services there are two UNIX sockets used, one between the web server and the application server then again between the the application server and the database server (MySQL clients use the UNIX socket when the &#8220;localhost&#8221; host name is used or the host name is blank.)</p>
<p>Anyway, to really see the difference the architecture changes made, I used a <a href="http://blitz.io">blitz.io</a> Rush to hammer the two instances.</p>
<p>First up was the old Slicehost system. This is the Rush configuration I used (same as Tumbledry):</p>
<pre>--pattern 1-250:60 -T 4000 -r california</pre>
<p>The result: this rendered the system completely unresponsive and required a hard reboot. Here&#8217;s a shot of &#8220;top&#8221; before the system stopped responding. Note all the memory being consumed, load on the way up and lots of Apache processes:</p>
<p><a href="http://jeffbeard.org/wp-content/uploads/2011/09/jeffbeard-top-1.jpg"><img class="alignleft size-full wp-image-327" title="jeffbeard-top-1" src="http://jeffbeard.org/wp-content/uploads/2011/09/jeffbeard-top-1.jpg" alt="" width="595" height="492" /></a></p>
<p>Oh no! The system just died:<br />
<a href="http://jeffbeard.org/wp-content/uploads/2011/09/jeffbeard-org-rush.jpg"><img class="alignleft size-full wp-image-331" title="jeffbeard-org-rush" src="http://jeffbeard.org/wp-content/uploads/2011/09/jeffbeard-org-rush.jpg" alt="" width="540" height="483" /></a></p>
<p>Next was the new Linode hosted solution. The result is that the new architecture sustained the Rush with virtually zero CPU usage (I&#8217;m not kidding) or any changes to memory usage. Varnish takes most of the load.</p>
<p><a href="http://jeffbeard.org/wp-content/uploads/2011/09/jeffbeard-org-rush-1.jpg"><img class="size-full wp-image-323 alignnone" title="jeffbeard-org-rush-1" src="http://jeffbeard.org/wp-content/uploads/2011/09/jeffbeard-org-rush-1.jpg" alt="blitz.io Rush Graph for jeffbeard.org" width="437" height="389" /></a></p>
<p>So as it turns out, I can also serve up 9 million hits per day from a small (512MB RAM), inexpensive ($20 per month) virtual server.</p>
<p>Here are the important configuration files:</p>
<p>nginx.conf:<br />
<script src="https://gist.github.com/1195248.js"> </script></p>
<p>nginx virtual host config:<br />
<script src="https://gist.github.com/1195299.js"> </script></p>
<p>php5-fpm.conf:<br />
<script src="https://gist.github.com/1195269.js"> </script></p>
<p>varnish:<br />
<script src="https://gist.github.com/1195393.js"> </script></p>
<p>wordpress.vcl (varnish site config):<br />
<script src="https://gist.github.com/1195286.js"> </script></p>
]]></content:encoded>
			<wfw:commentRss>http://jeffbeard.org/2011/09/lighting-a-fire-under-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Making Cloud Computing Accessible</title>
		<link>http://jeffbeard.org/2009/02/ubuntu-making-cloud-computing-accessible/</link>
		<comments>http://jeffbeard.org/2009/02/ubuntu-making-cloud-computing-accessible/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 17:18:09 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Infrastructure Management]]></category>

		<guid isPermaLink="false">http://jeffbeard.org/?p=65</guid>
		<description><![CDATA[It seems that Ubuntu, one of my favorite Linux distributions, is embracing Amazon EC2 styled cloud computing in an upcoming release. Ubuntu has included the Eucapyptus project in the aptly named Karmic Koala release 9.10 project in order for mere mortals to be able to install and manage their own cloud. Considering that some important [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that <a title="Ubuntu Web Site" href="http://www.ubuntu.com">Ubuntu</a>, one of my favorite Linux distributions, is <a title="Ubuntu 9.10 Karmic Koala Announcement" href="https://lists.ubuntu.com/archives/ubuntu-devel-announce/2009-February/000536.html">embracing</a> <a title="Amazon EC2" href="http://aws.amazon.com/ec2/">Amazon EC2</a> styled cloud computing in an upcoming release.</p>
<p>Ubuntu has included the <a title="Eucalyptus Project" href="http://eucalyptus.cs.ucsb.edu/">Eucapyptus project</a> in the aptly named Karmic Koala release 9.10 project in order for mere mortals to be able to install and manage their own cloud. Considering that some <a href="http://news.cnet.com/8301-1001_3-10054253-92.html">important</a> <a href="http://www.stallman.org/">people</a> recommend keeping your data on your own hardware to avoid vendor lock-in and privacy issues, this allows companies to avoid the issues while getting some of the advantages of the cloud. Of course, companies will still need a team, albeit much smaller, of crack infrastructure managers but they will have the advantages provided by the abstraction of hardware and it&#8217;s associated management tools.</p>
<p>Besides, what could possibly be cooler than having a compute cloud in your basement data center running on a bunch of cheap PC servers? I&#8217;m sure nothing can quite compare.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffbeard.org/2009/02/ubuntu-making-cloud-computing-accessible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Object Caching 254/269 objects using memcached

Served from: jeffbeard.org @ 2012-05-20 06:40:36 -->
