<?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>UNIXy &#187; EC2</title>
	<atom:link href="http://blog.unixy.net/tag/ec2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unixy.net</link>
	<description>Fully Managed Dedicated Servers</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:08:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>NUMA Impact On Web Hosting and the Cloud</title>
		<link>http://blog.unixy.net/2009/11/numa-impact-on-web-hosting-and-the-cloud/</link>
		<comments>http://blog.unixy.net/2009/11/numa-impact-on-web-hosting-and-the-cloud/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 05:11:00 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Future]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[bottleneck]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[nehalem]]></category>
		<category><![CDATA[NUMA]]></category>
		<category><![CDATA[rackspacecloud]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=69</guid>
		<description><![CDATA[My interest in NUMA (Non-Uniform Memory Access) has picked up quite a bit as of late. This technology has a huge potential for application in large scale Web hosting and Internet solutions. In brief, NUMA is a technology that was conceived to get around bus contention in general. What this means is that, with NUMA, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F11%2Fnuma-impact-on-web-hosting-and-the-cloud%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F11%2Fnuma-impact-on-web-hosting-and-the-cloud%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>My interest in NUMA (Non-Uniform Memory Access) has picked up quite a bit as of late. This technology has a huge potential for application in large scale Web hosting and Internet solutions. In brief, NUMA is a technology that was conceived to get around bus contention in general. What this means is that, with NUMA, programs are no longer limited by memory size or disk IOPS on the same host node and can, therefore, harness the power of other nearby servers as if they were part of the same chassis. In fact, IO scales up as a result!</p>
<p>The problem with uniform memory access architectures is that in a single chassis multi-processor system with a large amount of memory the bus tends to saturate very quickly. Processor cores addressing the memory bus are thus contending for the same resource, which becomes a hot spot. Take a 32-core server with 128GB of DDR3 memory. This server will under perform should it run a parallel memory hungry application. The issue being that each task on a core will at some point need to address memory via the bus (DDR3 is a three-frequency or three-channel bus). So out of 32 tasks that are all attempting to access the bus, there will be (32 -3 = 29/3 ~ 9) 9 tasks that contend for the same channel. The end result is a saturated bus and poor performance.</p>
<p>NUMA solves this bus contention problem by creating a virtual network of processor nodes and giving each node a certain weight based on its locality. The most interesting aspect is its true scalability potential. Most importantly, NUMA is the only technology that can <em>scale up</em>. Amazon&#8217;s EC2 and most other technologies in the market nowadays can only scale out. In other words, one has to implement load balancing, replication, and data synchronization.</p>
<p>Here&#8217;s where it gets interesting. IBM has already comoditised NUMA with its x86 offering: the IBM x440. Although one can only chain two x440 chassis together to form one NUMA network, what was once a concept is now practical! The x440&#8242;s can be chained together via their SMP expansion module using remote IO cables. Now imagine having the ability to chain 5, 10, 100 16GB dual quad core boxes! Not only does one take advantage of of a few terrabytes of memory but also scale core compute and IO.</p>
<p>A challenge remains. The remote IO cables that allow formation of a NUMA node cluster is based on proprietary technology. The research and development effort required to deliver such technology is colossal for a smaller firm. Or maybe not!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2009/11/numa-impact-on-web-hosting-and-the-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running DirectAdmin On Amazon EC2 Linux- Solved!</title>
		<link>http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/</link>
		<comments>http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 18:21:09 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Challenge]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[DA]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=15</guid>
		<description><![CDATA[We were able to install DirectAdmin (a Web hosting control panel) on Amazon&#8217;s Elastic Compute Cloud, branded as EC2. We would like to share the steps required to build a working instance of DirectAdmin on an Amazon server. First, I would like to personally thank Mark from DirectAdmin for being so accommodating and granting us [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F06%2Frunning-directadmin-on-amazon-ec2-linux-solved%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F06%2Frunning-directadmin-on-amazon-ec2-linux-solved%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>We were able to install DirectAdmin (a Web hosting control panel) on Amazon&#8217;s Elastic Compute Cloud, branded as EC2. We would like to share the steps required to build a working instance of DirectAdmin on an Amazon server. First, I would like to personally thank Mark from <a title="Web Control Panel" href="http://www.directadmin.com" target="_blank">DirectAdmin</a> for being so accommodating and granting us a trial license. His help is very much appreciated! Keep in mind that <a href="http://www.unixy.net" target="_self">UNIXY</a>&#8216;s truly fully managed service goes above and beyond. We take business dreams and make them a reality.</p>
<p>Before we list the requirements, it is important to note that EC2 instances are Xen Virtual Machines. We encountered some issues running DA on the &#8220;Small&#8221; Amazon instances. The issues are related to 64-bit mode library mismatches. The only instances to be able to run DirectAdmin out of the box are of type &#8220;Large&#8221; and better. They are more expensive but ideal for this configuration.</p>
<p>Here are the requirements:</p>
<ul>
<li>Instance of type Large</li>
<li>Linux CentOS 5 image</li>
<li>One elastic (which is another word for static) IP address</li>
</ul>
<p>Go ahead and bring up the node as you would normally do. Be sure to remove all extra software that comes pre-installed with the CentOS 5 image. Otherwise, it will break DirectAdmin. If in doubt, follow the instructions on the DirectAdmin Install page:</p>
<blockquote><p>http://www.directadmin.com/install.html</p></blockquote>
<p>Once logged in as root, go ahead and download the DirectAdmin install tarball:</p>
<blockquote><p># wget http://www.directadmin.com/setup.sh</p></blockquote>
<p>By default, the licensing scheme of DirectAdmin makes it that setup.sh binds to the licensed IP address. Here&#8217;s how the license verification command looks like:</p>
<blockquote><p>$BIN_DIR/wget $WGET_OPTION -O $DA_PATH/update.tar.gz &#8211;bind-address=$IP https://www.directadmin.com/cgi-bin/daupdate?uid=$CID\&amp;lid=$LID</p></blockquote>
<p>But as you know, EC2 instances are 1:1 private:public NAT. Which means that the license check step will fail and the DA install won&#8217;t start. To avoid this chicken-and-egg problem, we are going to tell setup.sh to not bind to any IP address but to simply connect to the DA licensing server using the elastic external IP address, which it will do by default. Go ahead and run this command against the setup.sh file:</p>
<blockquote><p><code># sed -i 's/--bind-address=\$IP//;' setup.sh</code></p></blockquote>
<p>Before we run setup.sh, we need to trick the setup script to think that the external IP address is &#8220;attached&#8221; to the server. Here&#8217;s how:</p>
<blockquote><p># ifconfig eth0:0 inet 1.1.1.1 netmask 255.255.255.255 up</p></blockquote>
<p>Be sure to replace the IP address 1.1.1.1 with your elastic IP. Then simply run setup.sh:</p>
<blockquote><p># cd /usr/local/directadmin/scripts; while [ true ]; do <code>sed -i 's/--bind-address=\$IP//; s/--bind-address=\${3}//;' *.sh </code>&gt; /dev/null &gt; 2&amp;&gt;1; sleep 10; done &amp; sh setup.sh 11111 22222 vpslux.com eth0:0 1.1.1.1</p></blockquote>
<p>Woaah! Wait a minute! What is that!? OK, let&#8217;s break it down. The DA scripts directory gets unpacked into the server after you run setup.sh. It dumps a list of scripts that are used by DA to setup accounts, domains, etc. Some scripts use the same &#8211;bind-address flag. Having that flag in those scripts breaks DA. the one-line script &#8220;while [ true ]; do sed -i &#8216;s/&#8211;bind-address=\$IP//; s/&#8211;bind-address=\${3}//;&#8217; *.sh; sleep 10; done&#8221; simply goes to that directory and removes the flag.</p>
<p>The trick being DA attempts to run some of those scripts <em>while</em> setup.sh is running. So it&#8217;s important to have the sed script run in parallel during the installation. Once the setup.sh is done running, we&#8217;ll kill the job (or reboot per the final step). The arguments supplied to setup.sh are in this format</p>
<blockquote><p># setup.sh &lt;ClientID&gt; &lt;LicenseID&gt; &lt;Hostname&gt; &lt;Interface&gt; &lt;ExternalIP&gt;</p></blockquote>
<p>Be sure to replace those values accordingly. Once the install finishes, simply reboot the VM:</p>
<blockquote><p># reboot</p></blockquote>
<p>That&#8217;s all folks. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
