<?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>Sysconfig&#039;s Blog &#187; Experimental Projects</title>
	<atom:link href="http://sysconfig.ossafe.org/category/experimental-projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysconfig.ossafe.org</link>
	<description>Linux, BSD, Mac OS, the Internet, Programming, and other things</description>
	<lastBuildDate>Sun, 16 May 2010 23:11:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Distributed Data Centre in-a-box</title>
		<link>http://sysconfig.ossafe.org/2008/08/distributed-data-centre-in-a-box/</link>
		<comments>http://sysconfig.ossafe.org/2008/08/distributed-data-centre-in-a-box/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 00:02:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Experimental Projects]]></category>
		<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://blog.admin-at-once.co.uk/?p=15</guid>
		<description><![CDATA[Weird title, right? Well, it&#8217;s also a weird project, which I am doing just for fun and as a kind of proof-of-concept. The idea is to build a &#8220;micro data centre&#8221; on a single VMware ESXi based machine and to fully replicate all parts of it onto another single ESXi based machine, which is located [...]]]></description>
			<content:encoded><![CDATA[<p>Weird title, right? Well, it&#8217;s also a weird project, which I am doing just for fun and as a kind of proof-of-concept. The idea is to build a &#8220;micro data centre&#8221; on a single VMware ESXi based machine and to fully replicate all parts of it onto another single ESXi based machine, which is located in another real data centre. That sounds easy, right? But hold on a second.</p>
<p><span id="more-15"></span>Here&#8217;s a list of features I want to implement:</p>
<ul>
<li>full failover</li>
<li>high security</li>
<li>scalability</li>
<li>load balancing</li>
<li>prioritisation based on the distance to the micro data centres</li>
<li>clustered filesystem across micro data centres</li>
</ul>
<p>The idea is to put a couple of virtual machines on both of the &#8220;micro data centre boxes:&#8221;</p>
<ul>
<li>pfSense firewall</li>
<li>Pound load-balancer</li>
<li>MySQL-Cluster nodes (NDB Cluster)</li>
<li>GlusterFS cluster storage nodes</li>
<li>PowerDNS with geo plugin (to deliver IP resolutions depending on the source of a query)</li>
<li>Apache instance(s) accessing the GlusterFS storage and the MySQL cluster</li>
</ul>
<p>The only VM which has a public IP is the pfSense firewall. It deals with the requests and does the inter-box traffic shaping to ensure stability for the cluster filesystem (which replicates itself between the &#8220;micro data centres&#8221; in real-time) and the MySQL cluster, which is also spread over both physical boxes. The PowerDNS server resolves domain queries depending on the source of the requests. One server resides in the US, one is located in the UK (for now); so European customers will always be redirected to the UK server, whereas American customers will always see the US based server first.</p>
<p>The reason, why everything lives in its own VM is that choosing this approach, it is possible to easily move a VM onto a more powerful machine if necessary. The whole &#8220;micro data centre&#8221; can grow as required. But from the beginning &#8212; that is the key interest of this experiment &#8212; everything is fully redundant and it does not matter, if a single VM or one of the two boxes entirely fails. That&#8217;s much closer to 100% uptime than any single-data-centre approach (which you will most commonly find).</p>
<p>Actually, I have never had a look behind the curtains of a Content Delivery Network (aka CDN). But I am pretty sure that the idea is similar, although they certainly do not use VMs or only two servers. So the implementation will differ. Anyway, I&#8217;d like to see how my approach works. It&#8217;s an experiment using free software only (which includes ESXi since it was released with a new license end of July).</p>
<p>I started this, because I like VMware ESXi and want to stress-test it a bit. Also I like the pfSense firewall (which is FreeBSD based). And I do have good experience with GlusterFS (also not yet in an inter-continental setup). MySQL NDB is new to me. So is location-based domain resolution based on PowerDNS.</p>
<p>I&#8217;m pretty sure that VMware Infrastructure with the HA-AddOn would be much easier (and way more expensive!), but this is about learning new things and combining them with existing knowledge&#8230; Yes, call me a freak. <img src='http://sysconfig.ossafe.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So, you now know the idea. In the next articles of this series, I will go into detail about all the things I do and how I am getting on with the project. Stay tuned.</p>
<p> </p>
<p>[Added August 17th] Here&#8217;s a small diagram how I thing it could look like:</p>
<p><a href="http://blog.the-ally.co.uk/wp-content/uploads/2008/08/data-centre-in-a-box.png"><img class="alignnone size-full wp-image-16" title="data-centre-in-a-box" src="http://blog.the-ally.co.uk/wp-content/uploads/2008/08/data-centre-in-a-box.png" alt="" width="500" height="353" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://sysconfig.ossafe.org/2008/08/distributed-data-centre-in-a-box/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
