<?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:media="http://search.yahoo.com/mrss"
	>

<channel>
	<title>Barry on WordPress</title>
	<atom:link href="http://barry.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://barry.wordpress.com</link>
	<description>Barry on WordPress.com</description>
	<pubDate>Sun, 11 May 2008 01:24:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Load Balancer Update</title>
		<link>http://barry.wordpress.com/2008/04/28/load-balancer-update/</link>
		<comments>http://barry.wordpress.com/2008/04/28/load-balancer-update/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 18:47:11 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[scaling]]></category>

		<category><![CDATA[nginx]]></category>

		<category><![CDATA[pound]]></category>

		<category><![CDATA[wordpress.com]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/?p=191</guid>
		<description><![CDATA[A while back, I posted about some testing we were doing of various software load balancers for WordPress.com.  We chose to use Pound and have been using it past 2-ish years.  We started to run into some issues, however, so we starting looking elsewhere.  Some of these problems were:

Lack of true configuration reload support made [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A while back, I <a href="http://barry.wordpress.com/2006/08/30/load-balancer-testing/">posted</a> about some testing we were doing of various software load balancers for WordPress.com.  We chose to use <a href="http://www.apsis.ch/pound/">Pound</a> and have been using it past 2-ish years.  We started to run into some issues, however, so we starting looking elsewhere.  Some of these problems were:</p>
<ul>
<li>Lack of true configuration reload support made managing our 20+ load balancers cumbersome.  We had a solution (hack) in place, but it was getting to be a pain.</li>
<li>When something would break on the backend and cause 20-50k connections to pile up, the thread creation would cause huge load spikes and sometimes render the servers useless.</li>
<li>As we started to push 700-1000 requests per second per load balancer, it seemed things started to slow down.  Hard to get quantitative data on this because page load times are dependent on so many things.</li>
</ul>
<p>So&#8230;  A couple weeks ago we finished converting all our load balancers to <a href="http://nginx.net/">Nginx</a>.  We have been using Nginx for <a href="http://en.gravatar.com/">Gravatar</a> for a few months and have been impressed by its performance, so moving WordPress.com over was the obvious next step.  Here is a graph that shows CPU usage before and after the switch.  Pretty impressive!</p>
<p><a href="http://barry.files.wordpress.com/2008/04/nginx-cpu.png"><img class="aligncenter size-full wp-image-192" src="http://barry.files.wordpress.com/2008/04/nginx-cpu.png?w=450&h=343" alt="" width="450" height="343" /></a>  </p>
<p>Before choosing nginx, we looked at <a href="http://haproxy.1wt.eu/">HAProxy</a>, <a href="http://www.danga.com/perlbal/">Perlbal</a>, and <a href="http://www.linuxvirtualserver.org/">LVS</a>. Here are some of the reasons we chose Nginx:</p>
<ul>
<li>Easy and flexible configuration (true config &#8220;reload&#8221; support has made my life easier)</li>
<li>Can also be used as a web server, which allows us to simplify our software stack (we are not using nginx as a web server currently, but may switch at some point).</li>
<li>Only software we tested which could handle 8000 (live traffic, not benchmark) requests/second on a single server</li>
</ul>
<div>We are currently using Nginx 0.6.29 with the <a href="http://wiki.codemongers.com/NginxHttpUpstreamRequestHashModule">upstream hash module</a>  which gives us the <a href="http://barry.wordpress.com/2007/11/01/static-hostname-hashing-in-pound/">static hashing</a> we need to proxy to varnish.  We are regularly serving about 8-9k requests/second  and about 1.2Gbit/sec through a few Nginx instances and have plenty of room to grow!</div>
<p> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/191/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/191/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=191&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2008/04/28/load-balancer-update/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>

		<media:content url="http://barry.files.wordpress.com/2008/04/nginx-cpu.png" medium="image" />
	</item>
		<item>
		<title>Amazon AWS Outage</title>
		<link>http://barry.wordpress.com/2008/02/15/amazon-aws-outage/</link>
		<comments>http://barry.wordpress.com/2008/02/15/amazon-aws-outage/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 14:43:30 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[downtime]]></category>

		<category><![CDATA[Amazon]]></category>

		<category><![CDATA[AWS]]></category>

		<category><![CDATA[EC2]]></category>

		<category><![CDATA[Outage]]></category>

		<category><![CDATA[S3]]></category>

		<category><![CDATA[SQS]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/?p=148</guid>
		<description><![CDATA[Looks like quite a few (if not all) of the Amazon AWS services are down or performance is significantly degraded this morning.   This is the first significant outage since we started using S3 to serve images for WordPress.com.  Currently we serve about 1500 image requests per second across WordPress.com.  About 80-100 [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Looks like quite a few (if not all) of the Amazon AWS services are <a href="http://developer.amazonwebservices.com/connect/thread.jspa?threadID=19714">down</a> or performance is significantly degraded this morning.   This is the first significant outage since we started <a href="http://ma.tt/2007/10/s3-news/">using S3</a> to <a href="http://blog.apokalyptik.com/2007/10/10/so-you-wanna-see-an-image/">serve images</a> for WordPress.com.  Currently we serve about 1500 image requests per second across WordPress.com.  About 80-100 per second  are served through S3; the rest being served from our local caches.  When the outage occurred, our systems detected the errors and automatically sent the requests normally bound for S3 to local image servers that we use for backup and failover purposes.  The outage is currently going on 2+ hours.  I wonder what impact, if any, this will have on AWS.  It seems like quite a few folks are using S3 and EC2 as their sole source of computing power and storage.  I wonder if these folks will move to more traditional hosting providers where there are formal SLAs, support, etc.</p>
<p><strong>UPDATE</strong>: Looks like after about 2.5 hours of downtime, things are starting to come back online over at Amazon.</p>
<p><strong>UPDATE</strong>:  I guess there is a <a href="http://www.amazon.com/b?ie=UTF8&amp;node=379654011">SLA for S3</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/148/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/148/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=148&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2008/02/15/amazon-aws-outage/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>
	</item>
		<item>
		<title>Empire State Building Pink and Red for Valentine&#8217;s Day</title>
		<link>http://barry.wordpress.com/2008/02/14/empire-state-building-valentines-day/</link>
		<comments>http://barry.wordpress.com/2008/02/14/empire-state-building-valentines-day/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 23:50:00 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[picture]]></category>

		<category><![CDATA[Empire State Building]]></category>

		<category><![CDATA[NYC]]></category>

		<category><![CDATA[Valentines day]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/?p=147</guid>
		<description><![CDATA[Before I moved to New York, I never realized that the Empire State Building&#8217;s lighting scheme changed so frequently.  I found the site where they detail the lighting schedule.  The wikipedia page also has some good information.  Since it&#8217;s Valentine&#8217;s Day, the lighting today was red, pink, and white.  Here&#8217;s what [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Before I moved to New York, I never realized that the Empire State Building&#8217;s lighting scheme changed so frequently.  I found <a href="http://www.esbnyc.com/tourism/tourism_lightingschedule.cfm">the site</a> where they detail the lighting schedule.  The<a href="http://en.wikipedia.org/wiki/Empire_State_Building"> wikipedia page </a>also has some good information.  Since it&#8217;s Valentine&#8217;s Day, the lighting today was red, pink, and white.  Here&#8217;s what it looks like from 33 floors up and across the East River.<br />
<a href='http://barry.files.wordpress.com/2008/02/empire-vday.jpg' title='empire-vday.jpg'><img src='http://barry.files.wordpress.com/2008/02/empire-vday.jpg' alt='empire-vday.jpg' /></a></p>
<p>Happy Valentine&#8217;s Day!</p>
<p>On a side note, looks like it&#8217;s time to clean the sensor on the camera&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/147/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/147/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=147&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2008/02/14/empire-state-building-valentines-day/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>

		<media:content url="http://barry.files.wordpress.com/2008/02/empire-vday.jpg" medium="image">
			<media:title type="html">empire-vday.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Manhattan Sunset</title>
		<link>http://barry.wordpress.com/2008/01/29/manhattan-sunset/</link>
		<comments>http://barry.wordpress.com/2008/01/29/manhattan-sunset/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 01:03:17 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[photos]]></category>

		<category><![CDATA[manhattan]]></category>

		<category><![CDATA[NYC]]></category>

		<category><![CDATA[sunset]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/?p=143</guid>
		<description><![CDATA[Finally made it to NYC after getting stuck for 13 hours in the Tuscon airport.  There is nothing like the Manhattan skyline at sunset&#8230;

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally made it to NYC after getting stuck for 13 hours in the Tuscon airport.  There is nothing like the Manhattan skyline at sunset&#8230;</p>
<p><a href="http://barry.files.wordpress.com/2008/01/nyc-sunset.jpg" title="manhattan-sunset.jpg"><img src="http://barry.files.wordpress.com/2008/01/manhattan-sunset.jpg" alt="manhattan-sunset.jpg" border="0" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/143/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/143/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=143&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2008/01/29/manhattan-sunset/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>

		<media:content url="http://barry.files.wordpress.com/2008/01/manhattan-sunset.jpg" medium="image">
			<media:title type="html">manhattan-sunset.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Congratulations Erin!</title>
		<link>http://barry.wordpress.com/2007/12/14/congratulations-erin/</link>
		<comments>http://barry.wordpress.com/2007/12/14/congratulations-erin/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 15:57:45 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[congratulations]]></category>

		<category><![CDATA[erin]]></category>

		<category><![CDATA[graduation]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/2007/12/14/congratulations-erin/</guid>
		<description><![CDATA[Today, my sister, Erin, graduated from college.  We thought the day would never come   Congratulations, Erin, we are all proud of you.

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="left">Today, my sister, Erin, graduated from <a href="http://www.txstate.edu/">college</a>.  We thought the day would never come <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Congratulations, Erin, we are all proud of you.</p>
<p><a href="http://barry.files.wordpress.com/2007/12/erin2.jpg" title="erin2.jpg"><img src="http://barry.files.wordpress.com/2007/12/erin2.jpg" alt="erin2.jpg" border="0" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/132/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/132/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=132&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2007/12/14/congratulations-erin/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>

		<media:content url="http://barry.files.wordpress.com/2007/12/erin2.jpg" medium="image">
			<media:title type="html">erin2.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Moving to NYC</title>
		<link>http://barry.wordpress.com/2007/12/12/moving-to-nyc/</link>
		<comments>http://barry.wordpress.com/2007/12/12/moving-to-nyc/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 00:59:34 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[travel]]></category>

		<category><![CDATA[moving]]></category>

		<category><![CDATA[NYC]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/2007/12/12/moving-to-nyc/</guid>
		<description><![CDATA[San Francisco is a great city and I have thoroughly enjoyed my time here.  Time for something different, however.  I am moving to New York City in January.  I will be leaving San Francisco on Thursday afternoon and spending some time traveling between now and January 26th, when I head to NYC.  Good bye SF, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>San Francisco is a great city and I have thoroughly enjoyed my time here.  Time for something different, however.  I am moving to New York City in January.  I will be leaving San Francisco on Thursday afternoon and spending some time traveling between now and January 26th, when I head to NYC.  Good bye SF, it was fun.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/131/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/131/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=131&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2007/12/12/moving-to-nyc/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>
	</item>
		<item>
		<title>Road trip to Texas</title>
		<link>http://barry.wordpress.com/2007/11/16/road-trip-to-texas/</link>
		<comments>http://barry.wordpress.com/2007/11/16/road-trip-to-texas/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 04:19:45 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[travel]]></category>

		<category><![CDATA[road trip]]></category>

		<category><![CDATA[texas]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/2007/11/16/road-trip-to-texas/</guid>
		<description><![CDATA[Tomorrow morning I am leaving for Texas.  When I drove from Texas to San Francisco in January of 2007 I said to myself I would never do it again, but in today&#8217;s world I guess never &#60; 2 years.  Going to take a bit of scenic route this time.  Here is the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Tomorrow morning I am leaving for Texas.  When I drove from Texas to San Francisco in January of 2007 I said to myself I would never do it again, but in today&#8217;s world I guess never &lt; 2 years.  Going to take a bit of scenic route this time.  Here is the <a href="http://maps.google.com/maps?f=d&amp;hl=en&amp;geocode=15489253553384694938,37.468150,-122.429280%3B5944826667871439599,37.138850,-122.320000%3B12581142088511442409,36.977240,-122.031870%3B9619388219698946950,36.593370,-121.877240%3B14448416216372318992,35.614980,-121.146400%3B3562241248301775585,36.055060,-112.137780%3B7896686051810716540,34.909380,-106.722640%3B3732129866037540593,33.577820,-101.859790%3B10439819189113287987,29.357470,-98.399630&amp;time=&amp;date=&amp;ttype=&amp;saddr=San+Francisco+CA&amp;daddr=CA-92+%4037.468150,+-122.429280+to:Cabrillo+Hwy+%4037.138850,+-122.320000+to:CA-1+N+%4036.977240,+-122.031870+to:CA-1+S+%4036.593370,+-121.877240+to:CA-1+%4035.614980,+-121.146400+to:pismo+beach,+CA+to:Center+Rd+%4036.055060,+-112.137780+to:I-25+N+%4034.909380,+-106.722640+to:19th+St%2FUS-62+%4033.577820,+-101.859790+to:Katy+TX+to:29.363027,-98.525391&amp;mra=dme&amp;mrcr=10&amp;mrsp=11&amp;sz=6&amp;sll=33.376412,-109.116211&amp;sspn=16.882641,31.816406&amp;ie=UTF8&amp;z=6&amp;om=1">map</a>. It breaks down as follows:</p>
<p>Day 1: San Francisco, CA to Pismo Beach, CA (via Hwy 1)</p>
<p>Day 2: Pismo Beach, CA to Grand Canyon, AZ</p>
<p>Day 3: Grand Canyon, AZ to Albuquerque, NM</p>
<p>Day 4: Albuquerque, NM to Lubbock, TX</p>
<p>Day 5: Lubbock, TX to Houston, TX</p>
<p>Day 6: Houston, TX to San Antonio, TX</p>
<p>Total trip is 2383 miles.   Will try to post some pictures along the way.</p>
<p><a href="http://barry.files.wordpress.com/2007/11/coptors.jpg" title="coptors.jpg"><img src="http://barry.files.wordpress.com/2007/11/coptors.jpg" alt="coptors.jpg" border="0" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/124/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/124/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=124&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2007/11/16/road-trip-to-texas/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>

		<media:content url="http://barry.files.wordpress.com/2007/11/coptors.jpg" medium="image">
			<media:title type="html">coptors.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Static hostname hashing in Pound</title>
		<link>http://barry.wordpress.com/2007/11/01/static-hostname-hashing-in-pound/</link>
		<comments>http://barry.wordpress.com/2007/11/01/static-hostname-hashing-in-pound/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 06:37:27 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[scaling]]></category>

		<category><![CDATA[load balancer]]></category>

		<category><![CDATA[patch]]></category>

		<category><![CDATA[pound]]></category>

		<category><![CDATA[varnish]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/2007/11/01/static-hostname-hashing-in-pound/</guid>
		<description><![CDATA[WordPress.com just surpassed her 300th server today.   How do we distribute requests to all those servers?  We use Pound of course. For those of you not familiar with Pound, it is an open source software load balancer that is easy to setup and maintain, flexible, and fast!
In general, we do not stick [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>WordPress.com just surpassed her 300th server today.   How do we distribute requests to all those servers?  We use <a href="http://www.apsis.ch/pound/">Pound</a> of course. For those of you not familiar with Pound, it is an open source software load balancer that is easy to setup and maintain, flexible, and fast!</p>
<p>In general, we do not stick individual sessions to particular backend servers because WordPress uses HTTP cookies to keep track of users and is therefore not dependent on server sessions.  Any web server can process any request in any given point of time and the correct data will be returned.  This is important since serve traffic in real time across three data centers.</p>
<p>There is one exception to this rule, however, and it has to do with the way we serve images.  As Demitrious explained in his detailed <a href="http://blog.apokalyptik.com/2007/10/10/so-you-wanna-see-an-image/">post</a>, when a request for an image is made, pound sends the request to a cache server running <a href="http://varnish.projects.linpro.no/">Varnish</a>.  How does it decide which server to send the request to?  Well, it looks at the hostname of the request, hashes it, and then assigns that to a particular cache server.  By default Pound supports sessions based on any HTTP header, so we could easily use the hostname as the determining factor, but the mapping is not static.  In other words, when we restart pound, all the hostname assignments would be reset and we would effectively invalidate a large portion of our cache.</p>
<p>To circumvent this problem, please see the following <a href="http://barry.files.wordpress.com/2007/11/pound-static-hostname.txt">patch</a>.  What the patch does is statically hash hostnames so a given hostname is sent to the same server all the time, even across restarts.  If the backend server happens to go down, the requests will be sent to another server in the pool until the server is back up, at which point the requests will be sent to the original server.  This allows us to restart pound without invalidating our image cache.  We have been using this in production for a couple months now and everything is working great.  The patch is written against Pound 2.3.2 and to use the static mapping you would add the following to the end of the Service directive in your Pound configuration file:<br />
<code><br />
Session<br />
Type hostname<br />
End</code></p>
<p>One thing to keep in mind is that if you add or remove servers from the Service definition, you will change the mapping, so I would recommend adding a few more backend directives than you need right away to allow for future growth without complete cache invalidation.  For example, we currently have 4 caching servers, but 16 BackEnds listed (4 instances of each server).  This will allow us to add more cache servers and only invalidate a small portion of the cache each time.</p>
<p>Of course this works for us because each blog has a unique hostname from which images are served (mine is barry.files.wordpress.com).  If all of your traffic is served from a single domain name, this strategy won&#8217;t do you much good.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/123/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/123/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=123&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2007/11/01/static-hostname-hashing-in-pound/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>
	</item>
		<item>
		<title>Making Gravatar fast again</title>
		<link>http://barry.wordpress.com/2007/10/26/making-gravatar-fast-again/</link>
		<comments>http://barry.wordpress.com/2007/10/26/making-gravatar-fast-again/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 21:13:43 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[scaling]]></category>

		<category><![CDATA[gravatar]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/2007/10/26/making-gravatar-fast-again/</guid>
		<description><![CDATA[As Matt blogged, Automattic recently purchased Gravatar.  The first thing we did was move the service onto the WordPress.com infrastructure.  Since the application is very different from WordPress.com what this really means is using what we have learned from scaling WordPress.com to increase both speed and reliability of the service, as well as [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As <a href="http://photomatt.net">Matt</a> blogged, Automattic <a href="http://blog.gravatar.com/2007/10/18/automattic-gravatar/">recently purchased</a> Gravatar.  The first thing we did was move the service onto the WordPress.com infrastructure.  Since the application is very different from WordPress.com what this really means is using what we have learned from scaling WordPress.com to increase both speed and reliability of the service, as well as leveraging our existing hardware and network infrastructure to stabilize the service.  The current infrastructure is laid out as follows:</p>
<ul>
<li>2 application servers (in 2 different data centers for redundancy).  One of these servers primarily handles the main Gravatar <a href="http://site.gravatar.com">website</a> which is Ruby on Rails while the other serves the images themselves.  If either of these servers or data centers were to fail, we could easily switch things around to work around the outage.</li>
<li>2 cache servers (1 in each datacenter).  These servers are running <a href="http://varnish.projects.linpro.no/">Varnish</a>.  They cache requested images for a period of 10 minutes, so frequently requested images are not repeatedly requested from the application servers.  We are seeing about a <a href="http://barry.files.wordpress.com/2007/10/gravatar-cache.png">65% cache hit rate</a> and about <a href="http://barry.files.wordpress.com/2007/10/gravatar-hits.png">1000 requests/second</a> at peak times, although as adoption of the service increases, we expect this number to go up significantly.  A single server running Varnish can serve many thousands of requests/sec.  The amount of data we are caching is small enough to fit in RAM, so disk I/O is not currently an issue.</li>
</ul>
<p>On the hardware side, for those of you who are curious, we are using <a href="http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/15351-15351-3328412-241644-241475-3186080.html">HP DL365s</a> for the application servers, and <a href="http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/15351-15351-3328412-241644-3328421-3219755.html?jumpid=reg_R1002_USEN">HP DL145s</a> for the caching servers.  4GB of RAM and 2 x AMD Opteron 2218s all around.  The application servers have 4 x 73GB 15k SAS drives in a RAID 5, while the caching servers are just single 80GB SATA drives.   We use the same hardware configurations extensively for WordPress.com and they work well.</p>
<p>Previously, the service was using Apache2 + Mongrel to serve the main site and lighttpd + mod_magnet to serve the images.  We decided to simplify this and we are currently using <a href="http://www.lighttpd.net/">lighttpd</a> to serve everything and it is working well for the most part.  We seem to have a <a href="http://barry.files.wordpress.com/2007/10/gravatar-memory-usage.png">memory usage issue</a> with lighttpd, which may be related to this long-standing <a href="http://trac.lighttpd.net/trac/ticket/758">bug</a>.  For now, we are just monitoring memory usage of the application with <a href="http://www.tildeslash.com/monit/">monit</a>, and restarting the service before memory usage gets too high.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/112/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/112/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=112&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2007/10/26/making-gravatar-fast-again/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress.com using S3</title>
		<link>http://barry.wordpress.com/2007/10/10/wordpresscom-using-s3/</link>
		<comments>http://barry.wordpress.com/2007/10/10/wordpresscom-using-s3/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 20:26:03 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
		
		<category><![CDATA[wordpress.com]]></category>

		<guid isPermaLink="false">http://barry.wordpress.com/2007/10/10/wordpresscom-using-s3/</guid>
		<description><![CDATA[Demitrious has a great post explaining how we are using S3, Varnish, and Pound to serve 60 million image requests per day on WordPress.com
UPDATE: Almost forgot, but Matt reminded me, he has a really super duper awesome post about WordPress.com and S3 too!
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Demitrious has a <a href="http://blog.apokalyptik.com/2007/10/10/so-you-wanna-see-an-image/">great post</a> explaining how we are using S3, Varnish, and Pound to serve 60 million image requests per day on WordPress.com</p>
<p><strong>UPDATE</strong>: Almost forgot, but <a href="http://barry.wordpress.com/2007/10/10/wordpresscom-using-s3/#comment-7312">Matt reminded me</a>, he has a really <a href="http://photomatt.net/2007/10/09/s3-news/">super duper awesome post</a> about WordPress.com and S3 too!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/barry.wordpress.com/111/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/barry.wordpress.com/111/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/barry.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/barry.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/barry.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/barry.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/barry.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/barry.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/barry.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/barry.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/barry.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/barry.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=barry.wordpress.com&blog=20261&post=111&subd=barry&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://barry.wordpress.com/2007/10/10/wordpresscom-using-s3/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/barry-128.jpg" medium="image">
			<media:title type="html">barry</media:title>
		</media:content>
	</item>
	</channel>
</rss>