<?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>FewBar.com - Make it good &#187; ubuntu</title>
	<atom:link href="http://fewbar.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://fewbar.com</link>
	<description>Technology, life, and mischief, not in that order</description>
	<lastBuildDate>Fri, 23 Dec 2011 01:41:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>But will it scale? &#8211; Taking Limesurvey horizontal with juju&#8230;</title>
		<link>http://fewbar.com/2011/12/but-will-it-scale-juju/</link>
		<comments>http://fewbar.com/2011/12/but-will-it-scale-juju/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 01:41:49 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Juju]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[charms]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[juju]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[limesurvey]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=486</guid>
		<description><![CDATA[One of the really cool things about using the cloud, and especially juju, is that it instantly enables things that often times take a lot of thought to even try out in traditional environments. While I was developing some little PHP apps &#8220;back in the day&#8221;, I knew eventually they&#8217;d need to go to more [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-487" style="border-style: initial; border-color: initial;" title="Will it Blend?" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/12/will-it-blend-300x168.jpg" alt="" width="300" height="168" /></p>
<p>One of the really cool things about using the cloud, and especially <a href="https://juju.ubuntu.com/">juju</a>, is that it instantly enables things that often times take a lot of thought to even try out in traditional environments. While I was developing some little PHP apps &#8220;back in the day&#8221;, I knew eventually they&#8217;d need to go to more than one server, but testing them for that meant, well, finding and configuring multiple servers. Even with VMs, I had to go allocate one and configure it. Oops, I&#8217;m out of time, throw it on one server, pray, move to next task.</p>
<p>This left a very serious question in my mind.. &#8220;When the time comes, will my app actually scale?&#8221;<br />
<span id="more-486"></span></p>
<p>Have I forgotten some huge piece to make sure it is stateless, or will it scale horizontally the way I intended it to? Things have changed though, and now we have the ability to start virtual machines via an API on several providers, and actually *test* whether our app will scale.</p>
<p>This brings us to our story. Recently, <a href="https://bugs.launchpad.net/charm/+bug/899849">Nick Barcet created a juju</a> <a href="https://juju.ubuntu.com/Charms">charm</a> for <a href="http://www.limesurvey.org/">Limesurvey</a>. This is a really cool little app that lets users create rich, multi faceted surveys and invite the internet to vote on things, answer questions, etc. etc. This is your standard &#8220;LAMP&#8221; application, and it seems written in a way that will allow it to scale out.</p>
<p>However, when Nick submitted the charm for the official juju charms collection, I wanted to see if it actually would scale the way I knew LAMP apps should. So, I fired up juju on ec2, threw in some haproxy, and related it to my limesurvey service, and then started adding units. This is incredibly simple with juju:</p>
<pre>juju deploy --repository charms local:mysql</pre>
<pre>juju deploy --repository charms local:limesurvey</pre>
<pre>juju deploy --repository charms local:haproxy</pre>
<pre>juju add-relation mysql limesurvey</pre>
<pre>juju add-relation limesurvey haproxy</pre>
<pre>juju add-unit limesurvey</pre>
<pre>juju expose haproxy</pre>
<p>Lo and behold, it didn&#8217;t scale. <a href="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/12/633325462873135493.jpg"><img class="alignright size-medium wp-image-492" title="633325462873135493" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/12/633325462873135493-300x225.jpg" alt="" width="300" height="225" /></a>There were a few issues with the default recommendations of limesurvey that Nick had encoded into the charm. These were simple things, like assuming that the local hostname would be the hostname people use to access the site.</p>
<p>Once that was solved, there were some other scaling problems immediately revealed. First on the ticket was that Limesurvey, by default, uses MyISAM for its storage engine in MySQL. This is a huge mistake, and I can&#8217;t imagine why *anybody* would use MyISAM in a modern application. MyISAM uses a &#8220;whole table&#8221; locking scheme for both reads and writes, so whenever anything writes to any part of the table, all reads and writes must wait for that to finish. InnoDB, available since MySQL 4.0, and the default storage engine for MySQL 5.5 and later, doesn&#8217;t suffer from this problem as it implements an MVCC model and row-level locks to allow concurrent reads and writes.</p>
<p>The MyISAM locks caused request timeouts when I pointed siege at the load balancer, because too many requests were stacking up waiting for updates to complete before even reading from the table. This is especially critical on something like the session storage that limesurvey does in the database, as it effectively meant that only one user can do anything at a time with the database.</p>
<p>Scalability testing in 10 minutes or less, with a server investment of about $1US. Who knew it could be this easy? Granted, I stopped at three app server nodes, and we didn&#8217;t even get to scaling out the database (something limesurvey doesn&#8217;t really have native support for). But these are things that are already solved, and that have been encoded in charms already. Now we just have to suggest small app changes to allow users to take advantage of all those well know best practices sitting in charms.</p>
<p><img class="aligncenter size-medium wp-image-495" style="border-style: initial; border-color: initial;" title="winning" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/12/winning-262x300.png" alt="" width="262" height="300" /></p>
<p>(check <a href="https://bugs.launchpad.net/charm/+bug/899849">the bug comments</a> for the results, I&#8217;d be interested if somebody wants to repeat the test).</p>
<p>So, in a situation where one needs to deploy now, and scale later, I think juju will prove quite useful. It should be on anybody&#8217;s radar who wants to get off the ground quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/12/but-will-it-scale-juju/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Juju ODS Demo &#8211; The Home Version</title>
		<link>http://fewbar.com/2011/10/juju-ods-demo-the-home-version/</link>
		<comments>http://fewbar.com/2011/10/juju-ods-demo-the-home-version/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 00:03:23 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Juju]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[gource]]></category>
		<category><![CDATA[hadoop]]></category>
		<category><![CDATA[juju]]></category>
		<category><![CDATA[openstack]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu-cloud]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=454</guid>
		<description><![CDATA[A few weeks ago I gave a live demo during Canonical CEO Jane Silber&#8217;s keynote at the Essex OpenStack Conference, which was held in Boston October 4-7 (See my previous post for details of the conference and summit). The demo was meant to showcase our new favorite cloud technology at Canonical, juju. In order to do this, we [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I gave a live demo during Canonical CEO Jane Silber&#8217;s keynote at the <a href="http://www.openstack.org/community/events/openstack-conference-fall-2011/">Essex OpenStack Conference</a>, which was held in Boston October 4-7 (See <a href="http://fewbar.com/2011/10/openstack-an-amoeba-on-a-mission/">my previous post for details of the conference and summit</a>). The demo was meant to showcase our new favorite cloud technology at Canonical, juju. In order to do this, we deployed hadoop on top of our private OpenStack cloud (also deployed earlier in the week via juju and Ubuntu Orchestra) and fed it a &#8220;real&#8221; workload (a big giant chunk of data to sort) in less than 5 minutes.</p>
<p>I&#8217;ve had a few requests to explain how it works, so, here is a step by step on how to repeat said demo.</p>
<p>First, you need to setup juju to be able to talk to your cloud. The simplest way to do this is to sign up for an AWS account on Amazon, and get EC2 credentials (a secret key and a key ID is needed).</p>
<p>If you install juju in Ubuntu 11.10, or from the <a href="https://launchpad.net/~juju/+archive/pkgs">daily build PPA</a> in any other release, you&#8217;ll get a skeleton environments.yaml just by running &#8216;juju&#8217;.</p>
<p>Once this is done, edit ~/.juju/environments.yaml to add your access-key: and secret-key:. Optionally, you can set them in AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in the environment.</p>
<p>Now, you need the &#8220;magic&#8221; bit that turns juju status changes into commands for the &#8220;gource&#8221; source code visualization tool. Its available here:</p>
<p>http://bazaar.launchpad.net/~clint-fewbar/juju/gource-output/view/head:/misc/status2gource.py</p>
<p>(wgettable here)</p>
<p><code></p>
<p>http://bazaar.launchpad.net/~clint-fewbar/juju/gource-output/download/head:/status2gource.py-20110908235607-pfnddi4d114nl8qd-1/status2gource.py</p>
<p></code></p>
<p>You&#8217;ll also need to install the &#8216;gource&#8217; visualization tool. I only tried this on Ubuntu 11.10, but it is available on other releases as well.</p>
<p>Make sure your desired target environment is either the only one in .juju/environments.yaml, or set to be the default with &#8216;default: xxxx&#8217; at the root of the file. You need &#8216;juju status&#8217; to return something meaningful (after bootstrap) for status2gource.py to work.</p>
<p>Now, in its own terminal, run this, note that cof_orange_hex.png is part of the official Ubuntu logo packs, but I forget where I got that. You may omit that commandline argument if you like, and a generic &#8220;person&#8221; image will be used.</p>
<p><code>python -u status2gource.py | gource --highlight-dirs \<br />
--file-idle-time 1000000 \<br />
--log-format custom \<br />
--default-user-image cof_orange_hex.png \<br />
--user-friction 0.5 \<br />
-</code></p>
<p>This will not show anything until juju bootstrap is done and &#8216;juju status&#8217; shows the machine 0 running. If you already have services deployed, it should build the tree rapidly.</p>
<p>So next if you haven&#8217;t done it already</p>
<p><code>juju bootstrap<br />
</code><br />
Once your instance starts up, you should see a gource window pop up and the first two bits, the bootstrap node and the machine 0 node, will be added.</p>
<p><a href="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-1539421.png"><img class="size-medium wp-image-460 alignnone" title="Screenshot at 2011-10-21 15:39:42" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-1539421-300x233.png" alt="" width="300" height="233" /></a></p>
<p><span id="more-454"></span></p>
<p>Once this is done, you can just deploy/add-relation/etc. to your heart&#8217;s content.</p>
<p>To setup a local repo of charms, we did this:</p>
<p><code>mkdir charms<br />
bzr init-repo charms/oneiric<br />
cd charms/oneiric<br />
bzr branch lp:~mark-mims/+junk/charm-hadoop-master hadoop-master<br />
bzr branch lp:~mark-mims/+junk/charm-hadoop-slave hadoop-slave<br />
bzr branch lp:~mark-mims/+junk/charm-ganglia ganglia</code></p>
<p>Those particular charms were specifically made for the demo, but most of the changes have been folded back in to the main &#8220;charm collection&#8221;, so you can probabl change lp:~mark-mims/+junk/charm- to lp:charm/.</p>
<p>You will also need a file in your current directory called &#8216;config.yaml&#8217; with this content:</p>
<pre><code>namenode: job_size: 100000 job_maps: 10 job_reduces: 10 job_data_dir: in_one job_output_dir: out_one </code></pre>
<pre>These numbers heavily control how the job runs with 1 or 100 hadoop instances. If you want to spend a couple of bucks in Amazon, and fire up 20 nodes, then raise job_maps to 100 and job_reduces to 100. Also job_size to 10000000. Otherwise its over very fast!</pre>
<p>We started the demo after bootstrap was already done, so the next step is to deploy Hadoop/HDFS and ganglia to keep an eye on the nodes as they came up.</p>
<p><code>juju deploy --repository . --config config.yaml hadoop-master namenode<br />
juju deploy --repository . hadoop-slave datacluster<br />
juju deploy --repository . ganglia jobmonitor<br />
juju add-relation namenode datacluster<br />
juju add-relation datacluster jobmonitor<br />
juju expose jobmonitor</code></p>
<p>This should get you a tree in gource showing all of the machines, services, and relations that are setup.</p>
<p><a href="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-164343.png"><img class="size-medium wp-image-462 alignnone" title="Screenshot at 2011-10-21 16:43:43" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-164343-300x233.png" alt="" width="300" height="233" /></a></p>
<p>You can scale out hadoop next with this command. Here I only create 4, but it could be 100.. depending on how fast you need your data map/reduced.</p>
<p>for i in 1 2 3 4 ; do juju add-unit datacluster ; done</p>
<p><a href="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-164623.png"><img class="size-medium wp-image-463 alignnone" title="Screenshot at 2011-10-21 16:46:23" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-164623-300x233.png" alt="" width="300" height="233" /></a></p>
<p>Finally, to start the teragen/terasort:</p>
<p><code>juju ssh namenode/0</code></p>
<p><code>$ sudo su -u hdfs sh /usr/lib/hadoop/terasort.sh<br />
</code><br />
You may also want to note the hostname of the machine assigned to the jobmonitor node so you can bring it up in a browser. You will be able to see it in &#8216;juju status&#8217;.</p>
<p><a href="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-165030.png"><img class="size-medium wp-image-464 alignnone" title="Screenshot at 2011-10-21 16:50:30" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/10/Screenshot-at-2011-10-21-165030-300x217.png" alt="" width="300" height="217" /></a></p>
<p>Its worth noting that we had a fail rate of about 1 in 20 tries while practicing the demo because of this bug:</p>
<p><a href="https://bugs.launchpad.net/juju/+bug/872378">https://bugs.launchpad.net/juju/+bug/872378</a></p>
<p>This causes the &#8220;juju expose jobmonitor&#8221; to fail, which means you may not be able to reach the ganglia instance. You can fix this by stopping/starting the provisioning agent on the bootstrap node. That is easier said than done, but can be scripted. Its fixed in juju&#8217;s trunk, so if you are using the daily build, not the distro version, you shouldn&#8217;t see that issue.</p>
<p>So once you&#8217;re done, you&#8217;ll probably want to get rid of all these nodes you&#8217;ve created. Juju has a tool that strips everything down that it has brought up, which can be dangerous if you have data on the nodes, so be careful!</p>
<p><code><br />
juju destroy-environment<br />
</code></p>
<p>It does not have a &#8216;&#8211;force&#8217; or &#8216;-y&#8217;, by design. Make sure to keep the gource running when you do this. Say &#8216;y&#8217;, and then enjoy the show at the end. <img src='http://fewbar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;d be interested to hear from anybody who is brave enough to try this how their experience is!</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/10/juju-ods-demo-the-home-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenStack &#8211; an amoeba on a mission</title>
		<link>http://fewbar.com/2011/10/openstack-an-amoeba-on-a-mission/</link>
		<comments>http://fewbar.com/2011/10/openstack-an-amoeba-on-a-mission/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 06:07:57 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Ensemble]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[juju]]></category>
		<category><![CDATA[openstack]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=448</guid>
		<description><![CDATA[According to NASA, 70% of the earth is covered by clouds. Apparently, at least 70% of our computing needs can be covered by clouds as well. That seems to be the shared belief by the rather large crowd that gathered in Boston last week for the Essex edition of the OpenStack Design Summit and subsequent [...]]]></description>
			<content:encoded><![CDATA[<p>According to NASA, 70% of the earth is covered by clouds. Apparently, at least 70% of our computing needs can be covered by clouds as well. That seems to be the shared belief by the rather large crowd that gathered in Boston last week for the Essex edition of the <a href="http://www.openstack.org/community/events/openstack-conference-fall-2011/">OpenStack Design Summit</a> and subsequent OpenStack Conference.</p>
<p>The amount of energy and corporate investment in OpenStack is staggering when one considers that it didn&#8217;t exist 2 years ago, and didn&#8217;t really do much more than spawn VM&#8217;s and store objects until this month with the Diablo release, which added some more capabilities, but from my point of view, mostly just refined those abilities and set the stage for the future.<br />
<span id="more-448"></span><br />
Attending as a member of the Ubuntu Server team and a Canonical employee was quite a gratifying experience. Ubuntu Server has been the platform of choice for OpenStack&#8217;s development, and that has definitely led to a lot of people running OpenStack on Ubuntu Server. Its always nice to hear that your work is part of something greater.</p>
<p>On the surface, one might be concerned at a lack of vision in the OpenStack project. With so many competing interests, it may appear that it has no clear vision and is just growing toward the latest source of funding or food, much like an amoeba swallowing up its next meal. But the leadership of the project seems to understand that there is still a much greater mission here, that without intense focus the project will expend enormous energy and accomplish little more than falling a little less behind established players in the marketplace.</p>
<p>Its a bit vindicating for one of my more intense current interests, <a href="http://juju.ubuntu.com">Juju</a>, that others who are close to this discussion, like OpenStackers, are thinking along the same lines. In talking with Puppet and Chef guys and with people who are using the cloud, its clear to me that my hunch is right; chef and puppet are not really the same thing as Juju. The new project from Cisco, <a href="https://launchpad.net/donabe">Donabe</a>, seems to be thinking exactly like Juju, wanting to encapsulate and describe each service in what they call &#8220;Network Containers&#8221;. Also I&#8217;m told the desires of the Neutronium PaaS project are pretty similar as well.</p>
<p>Ultimately we don&#8217;t think that the current limitations of known PaaS stacks are always worth the effort to integrate with them. We do want to have a lot of the same capabilities without having to duplicate all the effort to set them up. We want to be able to make use of well understood technologies without having to understand every detail of their deployment and configuration. If I want to make use of MySQL or memcached, I should understand how they work, but I shouldn&#8217;t have to duplicate the effort that others have had to put in to make them work.</p>
<p>Chef and Puppet have made some inroads into this by making such things highly repeatable and getting them all into source control. However, its my belief that their implementations both limit the network effect that they can have to build up a full set of sharable services. Juju, I think, will really be a boost to those who have spent a lot on solid config management, as that config management will be easy to chop up into Juju charms, and then that will open up all the other existing charms for immediate use in such a shop.</p>
<p>Getting back to how this relates to OpenStack, it was also quite exhilarating to do a live keynote demo of Juju in all of its alpha glory. To raise the tightrope a little higher, it was driving OpenStack Diablo, which some might call beta-quality. We also got rid of the safety nets entirely, and had it running on top of Ubuntu 11.10 (pre-release). We had a few kinks through the week, but the awesome team I had around me was able to iron them all out and made both our CEO, Jane Silber, and me look very good up there. That includes my fellow server team members, the OpenStack developers, Canonical IS pro&#8217;s, the Juju dev team, and my main collaborator in the whole thing, Jorge Castro.</p>
<p>I hope to attend the next ODS, to see how much closer OpenStack is to completing its mission in 6 months. What is that mission currently? Quite simple really.. the mission is, figure out the mission.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/10/openstack-an-amoeba-on-a-mission/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>So what is Ensemble anyway?</title>
		<link>http://fewbar.com/2011/06/so-what-is-ensemble-anyway/</link>
		<comments>http://fewbar.com/2011/06/so-what-is-ensemble-anyway/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 18:53:08 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Ensemble]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chef]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[config management]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[ensemble]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[orchestration]]></category>
		<category><![CDATA[principia]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=414</guid>
		<description><![CDATA[Have you heard of Ensemble? Are you excited about Cloud/Service Orchestration? What? Ok you&#8217;re not alone if you are scratching your head. Ensemble is an implementation of a new idea that has been taking shape the last couple of years. Ever since Amazon hooked up a remote API to thousands of machines to provide access [...]]]></description>
			<content:encoded><![CDATA[<p>Have you heard of <a href="http://ensemble.ubuntu.com/">Ensemble</a>? Are you excited about Cloud/Service Orchestration? What? Ok you&#8217;re not alone if you are scratching your head.</p>
<p>Ensemble is an implementation of a new idea that has been taking shape the last couple of years. Ever since Amazon hooked up a remote API to thousands of machines to provide access to their virtual infrastructure (and called it macaroni? err.. AWS), people have been dreaming up ways to take advantage of what is basically a robotic &#8220;NOC guy&#8221;. No longer do you have to pre-rack servers or call your vendor frantically to get servers sent next-day to your colo. Right?</p>
<p>Naturally, the system administrators that would normally be in charge of racking servers, applied their existing tools to the job, to mixed success. Config management is really good at modelling identical hosts. But with virtual hosts instantly available, this left those thinking at a higher level wanting more. Chef in particular implemented a nice set of tools and functionality to allow this high level &#8220;service&#8221; definition with their knife tools and simple ruby API.</p>
<p>But how easy are Chef&#8217;s cookbooks to share and use without modification?<span id="more-414"></span> How easy are they to integrate together? Puppet has modules that are also capable of similar functionality, and the recent integration of Mcollective, plus puppet Faces, has certainly added a lot of the same things Chef had to support this kind of application modelling, but again, the modules seem to require a lot of convention and assumption, and tweaking to get useful.</p>
<p>Its my opinion, that this is very much like the way tarballs+autoconf became the de-facto standard for distributing free software. It was *so much* better than writing a Makefile by hand, and it achieved an enormous amount of portability, so developers adopted it rapidly. In fact, it is still the dominant way to distribute portable open source applications.</p>
<p>But at some point, the limitations of this became clear. There was a need for something more concise, that could distribute both the source, and binaries, built for a platform. There was some limited<a href="http://slackware.org"> early success with tarballs</a> built by convention. But then, Enter RPM and DPKG. These included ways to express facts about software, like its dependencies, architecture, and the revisions made to it to work on the target platform. This allowed distributors of software to more easily maintain their systems, and enabled users to manage the software in their environments.</p>
<p>At that point, some smart guy figured out that we should be able to download and automatically configure all of the software needed for one application to work properly, just from its packaging information. To my mind, apt-get was my first experience with this, though FreeBSD ports authors may disagree there. Either way, this made it very easy for admins and users to install software without spending hours in the 7 levels of dependency hell.</p>
<p>In many ways, Service Orchestration is a way of bringing the benefits of packaging to the cloud. It should allow us to build out our cloud in a sane way, taking advantage of the knowledge that has been gained by others. For the bits that we need to finely tune, it should step aside and allow that without compromising the system.</p>
<p>Ensemble is an implementation of this idea, and <a href="https://launchpad.net/principia">Principia</a> is a collection of &#8220;<a href="https://ensemble.ubuntu.com/docs/formula.html">Formulas</a>&#8221; for Ensemble. They are tightly coupled to Ubuntu, as they are in many ways meant to be the dpkg and apt-get for Ubuntu in the cloud.</p>
<p>Its pretty easy to try out Ensemble and Principia on Ubuntu. Right now you&#8217;ll need an EC2 account with an access key setup, though we&#8217;re working on making this work with just your local machine for rapid development.</p>
<p><em><strong>Its been pointed out to me that the version of principia-tools that was available at the time of this writing didn&#8217;t include /usr/share/principia-tools/tests. I&#8217;ve uploaded a fixed version to the ensemble PPA, so if you tried these instructions and failed, please try updating principia-tools. If that fails, you can get the tests with bzr branch lp:principia-tools.</strong><br />
</em></p>
<p><code><br />
sudo add-apt-repository ppa:ensemble/ppa<br />
sudo apt-get update<br />
sudo apt-get install principia-tools<br />
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxx<br />
export AWS_SECRET_KEY_ID=0123456789ABCDEF<br />
ensemble bootstrap<br />
principia getall /some/path/for/formulas<br />
/usr/share/principia-tools/tests/mediawiki.sh /some/path/for/formulas<br />
</code></p>
<p>What does this give you, well it should give you a 7 node mediawiki cluster of t1.micro&#8217;s in the us-east-1 region of EC2. I just ran it and now I have this:</p>
<pre>machines:
  0: {dns-name: ec2-50-19-158-109.compute-1.amazonaws.com, instance-id: i-215dd84f}
  1: {dns-name: ec2-50-17-16-228.compute-1.amazonaws.com, instance-id: i-8d58dde3}
  2: {dns-name: ec2-72-44-49-114.compute-1.amazonaws.com, instance-id: i-9558ddfb}
  3: {dns-name: ec2-50-19-47-106.compute-1.amazonaws.com, instance-id: i-6d5bde03}
  4: {dns-name: ec2-174-129-132-248.compute-1.amazonaws.com, instance-id: i-7f5bde11}
  5: {dns-name: ec2-50-19-152-136.compute-1.amazonaws.com, instance-id: i-755bde1b}
  6: {dns-name: '', instance-id: i-4b5bde25}
services:
  demo-wiki:
    formula: local:mediawiki-62
    relations: {cache: wiki-cache, db: wiki-db, website: wiki-balancer}
    units:
      demo-wiki/0:
        machine: 2
        relations: {}
        state: null
      demo-wiki/1:
        machine: 6
        relations: {}
        state: null
  wiki-balancer:
    formula: local:haproxy-13
    relations: {reverseproxy: demo-wiki}
    units:
      wiki-balancer/0:
        machine: 4
        relations: {}
        state: null
  wiki-cache:
    formula: local:memcached-10
    relations: {cache: demo-wiki}
    units:
      wiki-cache/0:
        machine: 3
        relations: {}
        state: null
      wiki-cache/1:
        machine: 5
        relations: {}
        state: null
  wiki-db:
    formula: local:mysql-93
    relations: {db: demo-wiki}
    units:
      wiki-db/0:
        machine: 1
        relations: {}
        state: null</pre>
<p>At the top you see the machines that ensemble spun up in EC2 in the &#8216;machines&#8217; section. The numbers there correspond to the &#8216;machine: #&#8217; in the service/units definitions below. If you look through, you&#8217;ll see above that wiki-balancer is machine 4, which has a hostname of ec2-174-129-132-248.compute-1.amazonaws.com. If you go to that hostname, once all relations are up (I like to use &#8216;watch ensemble status&#8217; to see when this happens), you should see a working mediawiki. But not just a working mediawiki, a scalable one. If you want to pour on the traffic, spin up 3 more demo-wiki&#8217;s to handle the app server load:</p>
<p><code><br />
ensemble add-unit demo-wiki<br />
ensemble add-unit demo-wiki<br />
ensemble add-unit demo-wiki<br />
</code></p>
<p>These will of course take a minute or two to spin up. Once they&#8217;re ready they&#8217;ll show up in the status output:</p>
<pre>services:
  demo-wiki:
    formula: local:mediawiki-62
    relations: {cache: wiki-cache, db: wiki-db, website: wiki-balancer}
    units:
      demo-wiki/0:
        machine: 2
        relations:
          cache: {state: up}
          db: {state: up}
          website: {state: up}
        state: started
      demo-wiki/1:
        machine: 6
        relations:
          cache: {state: up}
          db: {state: up}
          website: {state: up}
        state: started
      demo-wiki/2:
        machine: 7
        relations:
          cache: {state: up}
          db: {state: up}
          website: {state: up}
        state: started
      demo-wiki/3:
        machine: 8
        relations:
          cache: {state: up}
          db: {state: up}
          website: {state: up}
        state: started
      demo-wiki/4:
        machine: 9
        relations:
          cache: {state: up}
          db: {state: up}
          website: {state: up}
        state: started
</pre>
<p>How about a little test then? After I got to this point, I logged in as WikiSysop (change the password folks! its change-me) and imported the Wikipedia exports for &#8220;Ubuntu&#8221; and &#8220;EC2&#8243;. After that I used harvestman to spider the site and then saved all the urls in a file, urls.txt. Alright! Now lets fire up *siege* from a machine outside the cluster, but in the same availability zone / security group (so at least we&#8217;re only dealing with EC2&#8242;s latency and not my net connection), and see if we can take this cluster down!</p>
<p><code><br />
$ siege -i -c 5 -f urls.txt<br />
...<br />
Transactions:		         563 hits<br />
Availability:		      100.00 %<br />
Elapsed time:		       95.58 secs<br />
Data transferred:	        2.64 MB<br />
Response time:		        0.35 secs<br />
Transaction rate:	        5.89 trans/sec<br />
Throughput:		        0.03 MB/sec<br />
Concurrency:		        2.04<br />
Successful transactions:         544<br />
Failed transactions:	           0<br />
Longest transaction:	       13.54<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>This is, btw, the best run I got out of t1.micro&#8217;s. Sometimes it would get quite ugly:</p>
<p><code><br />
Transactions:		         892 hits<br />
Availability:		       99.55 %<br />
Elapsed time:		      221.69 secs<br />
Data transferred:	        3.64 MB<br />
Response time:		        0.61 secs<br />
Transaction rate:	        4.02 trans/sec<br />
Throughput:		        0.02 MB/sec<br />
Concurrency:		        2.45<br />
Successful transactions:         849<br />
Failed transactions:	           4<br />
Longest transaction:	       27.41<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>Lets try the whole thing over with m1.small. First I edit ~/.ensemble/environments.yaml and add an override for the default-instance-type:</p>
<p><code><br />
ensemble: environments</code></p>
<pre>
environments:
  sample:
    type: ec2
    default-instance-type: m1.small
    control-bucket: ensemble-12345678901234567890
    admin-secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</pre>
<p>Then I re-run the whole test:</p>
<p><code><br />
Transactions:		         290 hits<br />
Availability:		       98.98 %<br />
Elapsed time:		       81.79 secs<br />
Data transferred:	        0.78 MB<br />
Response time:		        0.53 secs<br />
Transaction rate:	        3.55 trans/sec<br />
Throughput:		        0.01 MB/sec<br />
Concurrency:		        1.89<br />
Successful transactions:         277<br />
Failed transactions:	           3<br />
Longest transaction:	        1.50<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>Oops! I forgot to add my 3 extra nodes. Note that these two m1.smalls are already almost keeping up. Now as I add these, I keep siege running. Its pretty cool to watch the response times drop as nodes come online to carry some of the load.</p>
<p>Now with 5 m1.small&#8217;s:</p>
<p><code><br />
Transactions:		         273 hits<br />
Availability:		      100.00 %<br />
Elapsed time:		       54.27 secs<br />
Data transferred:	        0.99 MB<br />
Response time:		        0.47 secs<br />
Transaction rate:	        5.03 trans/sec<br />
Throughput:		        0.02 MB/sec<br />
Concurrency:		        2.38<br />
Successful transactions:         260<br />
Failed transactions:	           0<br />
Longest transaction:	       19.92<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>And with higher concurrency raised from 5 to 10:</p>
<p><code><br />
Transactions:		         327 hits<br />
Availability:		      100.00 %<br />
Elapsed time:		       42.20 secs<br />
Data transferred:	        1.30 MB<br />
Response time:		        0.66 secs<br />
Transaction rate:	        7.75 trans/sec<br />
Throughput:		        0.03 MB/sec<br />
Concurrency:		        5.12<br />
Successful transactions:         318<br />
Failed transactions:	           0<br />
Longest transaction:	       25.51<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>And now if we add 2 more, for a total of 7 nodes, concurrency of 10 gets even better:</p>
<p><code><br />
Transactions:		         531 hits<br />
Availability:		      100.00 %<br />
Elapsed time:		       53.37 secs<br />
Data transferred:	        1.75 MB<br />
Response time:		        0.44 secs<br />
Transaction rate:	        9.95 trans/sec<br />
Throughput:		        0.03 MB/sec<br />
Concurrency:		        4.35<br />
Successful transactions:         507<br />
Failed transactions:	           0<br />
Longest transaction:	       15.49<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>And with 2 more (total of 9 units in demo-wiki serving the app):</p>
<p><code><br />
Transactions:		         354 hits<br />
Availability:		      100.00 %<br />
Elapsed time:		       34.41 secs<br />
Data transferred:	        1.23 MB<br />
Response time:		        0.41 secs<br />
Transaction rate:	       10.29 trans/sec<br />
Throughput:		        0.04 MB/sec<br />
Concurrency:		        4.22<br />
Successful transactions:         337<br />
Failed transactions:	           0<br />
Longest transaction:	       11.45<br />
Shortest transaction:	        0.00<br />
</code></p>
<p>Anyway, this isn&#8217;t a Mediawiki benchmark. This is to show you how easy it is to scale up and down in response to load with Ensemble. We all know that scaling out works, these graphs show it nicely:</p>
<p><img src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/06/resptime.png" alt="Response Time" /><br />
<img src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/06/tps.png" alt="Transactions per Second" /></p>
<p>Notice how the transactions/second went up all the time, but the response time went up drastically with the jump in concurrency. This is where you need to have the ability to scale quickly, and where, if you can live with the other limitations of EC2 or any other IaaS provider, the cloud should actually win you business, since better response time means more happy users.</p>
<p>Now that my siege is over, I can safely remove the unnecessary units one by one with &#8216;ensemble remove-unit demo-wiki/9&#8242;, etc. etc. There&#8217;s still a lot of room for sugar to be added. We could say &#8220;ensemble resize-service demo-wiki 5&#8243; and it might just pick 5 to keep and remove the rest, or add 3 to fulfill the request. There are also a ton of other ideas just bubbling up that are really exciting.</p>
<p>Come say hi and hack on ensemble with us in Freenode, #ubuntu-ensemble and on the mailing list on <a href="https://lists.ubuntu.com/mailman/listinfo/ensemble">the mailing list</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/06/so-what-is-ensemble-anyway/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Time for some ghetto monitoring</title>
		<link>http://fewbar.com/2011/05/time-for-some-ghetto-monitoring/</link>
		<comments>http://fewbar.com/2011/05/time-for-some-ghetto-monitoring/#comments</comments>
		<pubDate>Mon, 02 May 2011 16:54:51 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[drizzle]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upstart]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=391</guid>
		<description><![CDATA[If you came here between April 28 and about an hour ago, you got a &#8220;couldn&#8217;t connect to database&#8221; error. Oops! Seems my limited memory EC2 instance got a little overwhelmed by php processes and decided the db server, drizzled, should die to make more room for PHP. Ooops! Time to drop pm.max_children. I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/05/4584789991_7045d10c2c.jpg"><img class="alignleft size-medium wp-image-401" title="4584789991_7045d10c2c" src="http://fewbar.com.s3.amazonaws.com/wp-content/uploads/2011/05/4584789991_7045d10c2c-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>If you came here between April 28 and about an hour ago, you got a &#8220;couldn&#8217;t connect to database&#8221; error. Oops! Seems my limited memory EC2 instance got a little overwhelmed by php processes and decided the db server, drizzled, should die to make more room for PHP. Ooops! Time to drop pm.max_children.</p>
<p>I don&#8217;t have any monitoring setup for the site, so I just now figured it out. Until I get proper monitoring, I&#8217;ve installed this fancy bit of duct-tape upstart magic:<br />
<code><br />
start on stopping<br />
task<br />
script<br />
  env | mail -s "$JOB is stopping!" me@myemail.com<br />
end script<br />
</code></p>
<p>What does this do? Well is emails me whenever upstart gives up respawning something, or I manually stop a service.</p>
<p>Its not monitoring. I need monitoring. But this is a nice little hack to prevent a regression while I figure that out.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/05/time-for-some-ghetto-monitoring/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The 2011 O&#8217;Reilly Open Mysql Drizzle Maria Monty Percona Xtra Galera Xeround Tungsten Cloud Database Conference and Expo</title>
		<link>http://fewbar.com/2011/04/the-2011-oreilly-open-mysql-drizzle-maria-monty-percona-xtra-galera-xeround-tungsten-cloud-database-conference-and-expo/</link>
		<comments>http://fewbar.com/2011/04/the-2011-oreilly-open-mysql-drizzle-maria-monty-percona-xtra-galera-xeround-tungsten-cloud-database-conference-and-expo/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 17:49:00 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[drizzle]]></category>
		<category><![CDATA[mysqlconf]]></category>
		<category><![CDATA[percona]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=382</guid>
		<description><![CDATA[Or, for short, the &#8220;2011 O&#8217;Reilly MySQL Users Conference &#38; Expo&#8221;. Yes thats the short name of the conference that, thus far, has brought me nothing but good info, good times, and insight into one of the most interesting open source communities around. MySQL has been at the core of a real revolution in the [...]]]></description>
			<content:encoded><![CDATA[<p>Or, for short, the &#8220;2011 O&#8217;Reilly MySQL Users Conference &amp; Expo&#8221;. Yes thats the short name of the conference that, thus far, has brought me nothing but good info, good times, and insight into one of the most interesting open source communities around.</p>
<p>MySQL has been at the core of a real revolution in the way data driven applications have exploded on the internet. Its so easy to just install it, fire up php&#8217;s mysql driver, and boom, you&#8217;re saving and retrieving data. The *use* of MySQL has always been incredibly simple.</p>
<p>The politics has, at times, been confusing.<span id="more-382"></span> Dual licensing was sort of an odd concept when MySQL AB was doing it &#8220;back in the day&#8221;. Nobody really understood how it worked or how they could sell something that was also &#8220;free&#8221;. But it worked out great for them. InnoDB got bought by Oracle and a lot of people thought &#8220;oh noes MySQL will have no transactional storage, Oracle will kill it.&#8221; Well we see where thats about 180 degrees from what actually happened (R.I.P. Falcon).</p>
<p>So this year, with the oddness of Oracle not being the top sponsor at an event that had driven a lot of the innovation and collaboration in the MySQL world (ironically, choosing instead to spend their time and effort on a conference called &#8220;Collaborate&#8221;), I thought &#8220;wonderful, more politics&#8221;.</p>
<p>But as <a href="http://blog.krow.net/post/4753904254/mysql-state-of-the-ecosystem-2011">Brian Aker says in his &#8220;State of the ecosystem&#8221; post</a>, it was quite the opposite. The absence of the commercial entity responsible for MySQL took a lot of the purely business focused discussion down to almost a whisper, while big ideas and big thinking seemed to be extremely prominent.</p>
<p><a href="http://en.oreilly.com/mysql2011/public/schedule/topic/563">Drizzle</a> had quite a few sessions, including my own about <a href="http://en.oreilly.com/mysql2011/public/schedule/detail/17640">what we&#8217;ve done with Drizzle in Ubuntu</a>. This is particularly interesting to me because Drizzle is mostly driven by a community effort, though most of the heavy lifting work up until now has been sponsored by Sun then Rackspace. Its purely an idea of how a MySQL-like database should be written, and while it may be seeing limited production use now, the discussions were on how it can be used, what it does now, not where its going or who is going to pay for its development. Its such a good idea, I&#8217;m pretty convinced users will drive it in much the same way Apache was driven by users wanting to do interesting things with HTTP.</p>
<p>I saw a lot of interesting ideas around replication put forth as well. <a href="http://en.oreilly.com/mysql2011/public/schedule/detail/17386">Galera</a>, Tungsten, and <a href="http://en.oreilly.com/mysql2011/public/schedule/detail/17747">Xeround</a> all seem to be trying to build on MySQL&#8217;s success with replication and NDB (a.k.a. MySQL Cluster). I really like that there are multiple takes on how to make a multi-master highly available / scalable system work. Getting all the people using and developing these things into one conference center is always pretty interesting to me.</p>
<p>The keynotes were especially interesting, as they were delivered by people who are sitting at the interesection of the old MySQL world, and the new MySQL &#8220;ecosystem&#8221;. I missed Monty Widenius&#8217;s keynote but it strikes me that he is still leading the charge for a simple, scalable, powerful database system, proving that the core of MySQL is mostly unchanged. Martin Mickos delivered a really interesting take on how MySQL was part of the last revolution in computing (LAMP) and how it may very well be a big part of the next revolution (IaaS, aka &#8220;the cloud&#8221;). Brian Aker reinforced that MySQL as a concept, and specifically, Drizzle, are just part of your Infrastructure (the I in IaaS).</p>
<p>Then on Thursday, <a href="http://en.oreilly.com/mysql2011/public/schedule/detail/17808">Baron Schwartz blew the whole place up</a>. Go, watch the video if you weren&#8217;t there, or haven&#8217;t seen it. Baron has always been  insightful in his evaluation of the MySQL ecosystem. Maatkit came around when the community needed it, and on joining Percona I think he brought his clear thinking to Petr&#8217;s bold decision making at just the right time to help fuel their rise as one of the most respected consulting firms in the &#8220;WebScale&#8221; world. So when Baron got up and said that the database is still going to scale up, that MySQL isn&#8217;t going to lose to NoSQL or SomeSQL, but rather, that the infrastructure would adapt to the data requirements, it caught my attention, and got me nodding. And when he plainly called Oracle out for not supporting the conference, there was a hush over the croud followed by a big sigh. Its likely that those in attendance were the ones who understand that, and those who weren&#8217;t there were probably the ones who need to hear it. I&#8217;d guess by now they&#8217;ve seen the video or at least heard the call. Either way, thanks Baron for your insight and powerful thoughts.</p>
<p>This was my second MySQL Conference, and I hope it won&#8217;t be my last. The mix of users, developers, and business professionals has always struck me as quite unique, as MySQL sits at the intersection of a number of very powerful avenues. Lets hope that O&#8217;Reilly decides to do it again, *and* lets hope that Oracle gets on board as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/04/the-2011-oreilly-open-mysql-drizzle-maria-monty-percona-xtra-galera-xeround-tungsten-cloud-database-conference-and-expo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu and Drizzle &#8212; Run Drizzle on your Narwhal: OReilly MySQL Conference &amp; Expo 2011 &#8211; OReilly Conferences, April 11 &#8211; 14, 2011, Santa Clara, CA</title>
		<link>http://fewbar.com/2011/04/ubuntu-and-drizzle-run-drizzle-on-your-narwhal-oreilly-mysql-conference-expo-2011-oreilly-conferences-april-11-14-2011-santa-clara-ca/</link>
		<comments>http://fewbar.com/2011/04/ubuntu-and-drizzle-run-drizzle-on-your-narwhal-oreilly-mysql-conference-expo-2011-oreilly-conferences-april-11-14-2011-santa-clara-ca/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 21:36:24 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[drizzle]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=387</guid>
		<description><![CDATA[Ubuntu and Drizzle &#8212; Run Drizzle on your Narwhal: OReilly MySQL Conference &#38; Expo 2011 &#8211; OReilly Conferences, April 11 &#8211; 14, 2011, Santa Clara, CA. I gave a talk this week in Santa Clara at the MySQL Users Conference. I think it went pretty well and I got a lot of feedback from Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.oreilly.com/mysql2011/public/schedule/detail/17640">Ubuntu and Drizzle &#8212; Run Drizzle on your Narwhal: OReilly MySQL Conference &amp; Expo 2011 &#8211; OReilly Conferences, April 11 &#8211; 14, 2011, Santa Clara, CA</a>.</p>
<p>I gave a talk this week in Santa Clara at the MySQL Users Conference. I think it went pretty well and I got a lot of feedback from Ubuntu users about the positives of having Drizzle available in Universe.The slides are available at the link above.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/04/ubuntu-and-drizzle-run-drizzle-on-your-narwhal-oreilly-mysql-conference-expo-2011-oreilly-conferences-april-11-14-2011-santa-clara-ca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>presenting &#8220;blog on a narwhal&#8221;</title>
		<link>http://fewbar.com/2011/04/presenting-blog-on-a-narwhal/</link>
		<comments>http://fewbar.com/2011/04/presenting-blog-on-a-narwhal/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 07:26:52 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[drizzle]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[natty]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=374</guid>
		<description><![CDATA[Since we&#8217;re just about to 11.04 beta2, I figured its high time I start using Ubuntu Server for my personal blog. What? Almost a year at Canonical and my blog wasn&#8217;t on Ubuntu server? Well, for over 5 years now, a personal friend has provided me with a free Xen virtual machine to run my [...]]]></description>
			<content:encoded><![CDATA[<p>Since we&#8217;re just about to 11.04 beta2, I figured its high time I start using Ubuntu Server for my personal blog.</p>
<p>What? Almost a year at Canonical and my blog wasn&#8217;t on Ubuntu server? Well, for over 5 years now, a personal friend has provided me with a free Xen virtual machine to run my blog on. I migrated it off of Debian then, which was sad for me, but back then I was so focused on working I didn&#8217;t have time or resources to be picky, so I said OK.</p>
<p>Fast forward to now, I&#8217;ve been working on Ubuntu Server and getting ribbed by my co-workers about that &#8220;crappy CentOS xen box&#8221; they&#8217;d see me logged into.</p>
<p>Well thats all over now. I decided to marry all the new tech I&#8217;ve been playing with lately into one glorious blog migration.<span id="more-374"></span></p>
<p>The old blog was:</p>
<ul>
<li>Xen domU</li>
<li>500MB RAM allocated</li>
<li>9GB storage</li>
<li>CentOS 5.5</li>
<li>Apache + mod_php (5.3.5 from IUS project)</li>
<li>MySQL 5.0.77</li>
<li>WordPress 3.0.5 manually installed single-site</li>
</ul>
<p>The new hotness is:</p>
<ul>
<li>﻿EC2 t1.micro (its upgradable! <img src='http://fewbar.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>692MB RAM</li>
<li>8GB EBS</li>
<li>nginx + php5-fpm (5.3.5 from natty)</li>
<li>Drizzle 2011.03.13 (wordpress-plugin 0.0.2)</li>
<li>WordPress 3.0.5 from natty in multisite mode</li>
</ul>
<p>The steps to migrate weren&#8217;t altogether complicated. A bit of configuration for nginx to have it serve my PHP using php5-fpm, and copying most of wp-content over. Drizzle couldn&#8217;t have been more straight forward:</p>
<ul>
<li>Install drizzle7-client from EPEL on CentOS vm</li>
<li>drizzledump blog database (drizzledump automatically converts mysql schemas to drizzle compatible ones)</li>
<li>load it into drizzle on Ubuntu server</li>
</ul>
<p>WordPress still needs *some* help to use Drizzle. Much of this will be handled by the wordpress-drizzle package from my ppa (add-apt-repository ppa:clint-fewbar/drizzle) which filters DDL to change things like LONGTEXT to TEXT. Because Drizzle has done away with the eeeeevil of datetimes with  0000-00-00 as their date (a non-existent date), we need to change all instances of that to &#8217;0001-01-01&#8242;. In the future I&#8217;d like to see this abstracted out of wordpress even more so that it is more aware of the datetime fields and can use actual NULL values. I believe this can be done in the plugin by overloading the insert/update methods. I&#8217;ve begun working on that, but for now I&#8217;ll just have to keep patching wp-includes/post.php , which seems to be the main user of 0000-00-00 to denote a &#8220;draft&#8221; post.</p>
<p>We also have to alter the wp_posts table slightly. Thats because wordpress relies on mysql&#8217;s broken &#8220;NOT NULL&#8221; producing an &#8220;empty string&#8221; in varchars. This ALTER does that:</p>
<pre>﻿ALTER TABLE wp_posts MODIFY COLUMN post_mime_type VARCHAR(100) COLLATE utf8_general_ci DEFAULT '';</pre>
<p>Anyway, goodbye CentOS, hello Ubuntu!</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/04/presenting-blog-on-a-narwhal/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>My First Upload to Ubuntu</title>
		<link>http://fewbar.com/2011/04/my-first-upload-to-ubuntu/</link>
		<comments>http://fewbar.com/2011/04/my-first-upload-to-ubuntu/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 07:52:51 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=350</guid>
		<description><![CDATA[Last week, my application to join the ranks of Core Ubuntu Developers was accepted by the Ubuntu Developer Membership Board. The process is a bit humbling, as when you dig through the roster of this team, there aren&#8217;t a lot of names, and most of them are quite familiar to anyone who has done Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, my application to join the ranks of <a href="https://launchpad.net/~ubuntu-core-dev">Core Ubuntu Developers</a> was accepted by the Ubuntu Developer Membership Board. The process is a bit humbling, as when you dig through the roster of this team, there aren&#8217;t a lot of names, and most of them are quite familiar to anyone who has done Ubuntu Development, as they fly by in bug reports and changelogs at an almost superhuman pace, fixing, improving, and generally making Ubuntu more awesome-r.</p>
<p>So, a few hours ago, I made my first direct upload into Ubuntu without a sponsor. Its just a little upgrade to squid&#8217;s upstart job to make it start more reliably. I hope its the beginning of a string of uploads that will continue for a long time, and help me earn the badge that I&#8217;ve been granted.</p>
<p>Many thanks to all of my sponsors up to this point, and a special nod to those who were able to add a positive comment to my developer application.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/04/my-first-upload-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handlersocket &#8212; NoSQL for MySQL, now on your favorite Linux..</title>
		<link>http://fewbar.com/2011/02/handlersocket-nosql-for-mysql-now-on-your-favorite-linux/</link>
		<comments>http://fewbar.com/2011/02/handlersocket-nosql-for-mysql-now-on-your-favorite-linux/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 07:42:19 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[handlersocket]]></category>
		<category><![CDATA[natty]]></category>
		<category><![CDATA[nosql]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=347</guid>
		<description><![CDATA[Handlersocket is what all the cool kids are using these days.. I think. Basically you get a couple of new ports on your mysql server that allow SQL-free reading and writing for doing many thousands of tiny transactions per second without the overhead of parsing SQL. Thanks to my venerable Ubuntu sponsor, Chuck Short, handlersocket [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL">Handlersocket</a> is what all the cool kids are using these days.. I think. Basically you get a couple of new ports on your mysql server that allow SQL-free reading and writing for doing many thousands of tiny transactions per second without the overhead of parsing SQL.</p>
<p>Thanks to my venerable Ubuntu sponsor, Chuck Short, <a href="https://launchpad.net/ubuntu/+source/handlersocket">handlersocket is now available in Ubuntu Natty</a> in the universe repository. apt-get install handlersocket-mysql-5.1 handlersocket-doc, then follow the instructions in /usr/share/doc/handlersocket-doc/docs-en to enable it, and you have yourself a bonified NoSQL solution for your MySQL server. </p>
<p>There are also client libraries for perl (libnet-handlersocket-perl) and C/C++ (libhsclient-dev .. static only as the API is in flux). Other languages are still not packaged, but the protocol is simple, and links to early implementations are listed in the README file, which should be at /usr/share/doc/handlersocket-mysql-5.1/README.</p>
<p>It should be on Debian unstable as well soon&#8230;<br />
<em>Update April 3 2011, Handlersocket is now in Debian Unstable as well</em></p>
<p>Happy hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2011/02/handlersocket-nosql-for-mysql-now-on-your-favorite-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.267 seconds -->

