<?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>dKaiser</title>
	<atom:link href="http://www.dkaiser.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dkaiser.com/blog</link>
	<description>- Experiments with Clouds</description>
	<lastBuildDate>Mon, 30 Jan 2012 20:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Recovering a non responsive AWS instance</title>
		<link>http://www.dkaiser.com/blog/recovering-a-non-responsive-aws-instance?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recovering-a-non-responsive-aws-instance</link>
		<comments>http://www.dkaiser.com/blog/recovering-a-non-responsive-aws-instance#comments</comments>
		<pubDate>Mon, 30 Jan 2012 20:23:20 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[EBS]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=229</guid>
		<description><![CDATA[TweetI could not ssh in to one of my AWS instances last evening and it wasn’t serving any pages either. AWS management console said it was up, though. Rebooting did not help. The second reboot did not help either. Shutdown and start did not help. I was running out of tricks here! For some reason, [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Frecovering-a-non-responsive-aws-instance&amp;text=Recovering%20a%20non%20responsive%20AWS%20instance&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Frecovering-a-non-responsive-aws-instance" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>I could not ssh in to one of my AWS instances last evening and it wasn’t serving any pages either. AWS management console said it was up, though. Rebooting did not help. The second reboot did not help either. Shutdown and start did not help. I was running out of tricks here!</p>
<p>For some reason, the instance had been running on 100% CPU utilization for days:</p>
<p style="text-align: center;"><a href="http://www.dkaiser.com/blog/wp-content/uploads//2012/01/Screen-shot-2012-01-30-at-9.53.18-PM-1.png"><img class="aligncenter size-full wp-image-230" title="Screen shot 2012-01-30 at 9.53.18 PM 1" src="http://www.dkaiser.com/blog/wp-content/uploads//2012/01/Screen-shot-2012-01-30-at-9.53.18-PM-1.png" alt="" width="600" height="380" /></a></p>
<p>(I better do some monitoring in future!)</p>
<p>Even though the CPU usage had dropped after the restarting, the instance would not accept any connections. The only thing I could think of was to either ping the AWS forum, or to get the running volume on some new instance as the instance was an EBS based one. I decided to go with the new volume if the database would not mind too much. Steps I needed to do were:</p>
<ol>
<li>Snapshot the running volume</li>
<li>Create a new volume out of the snapshot on the same availability zone</li>
<li>Start a new instance with the Launch more like this</li>
<li>Shutdown the new instance</li>
<li>Detach the volume on the new instance</li>
<li>Attach the volume which was created from the snapshot to new instance (need to have the correct  attachment information, like /dev/sda1)</li>
<li>Start the new instance</li>
<li>Disassociate the Elastic IP from the old instance</li>
<li>Associate the correct Elastic IP on the new instance</li>
<li>Test and wish for the best</li>
</ol>
<p>This actually worked and did not even take too much time. Actually, really cool when thinking about this and imagining I would have had a physical server instead&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/recovering-a-non-responsive-aws-instance/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWS reboots, oh the drama</title>
		<link>http://www.dkaiser.com/blog/aws-reboots-oh-the-drama?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aws-reboots-oh-the-drama</link>
		<comments>http://www.dkaiser.com/blog/aws-reboots-oh-the-drama#comments</comments>
		<pubDate>Thu, 08 Dec 2011 20:35:30 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[AWS reboots]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=215</guid>
		<description><![CDATA[TweetI, as well as many others, received today an email from Amazon about the need to reboot one of my instances. Actually, Twitter was already aware of this and was a bit upset of the need. For me, this was the second time since 2009 when Amazon has asked to reboot one of my instances. [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Faws-reboots-oh-the-drama&amp;text=AWS%20reboots%2C%20oh%20the%20drama&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Faws-reboots-oh-the-drama" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>I, as well as many others, received today an email from Amazon about the need to reboot one of my instances. Actually, Twitter was already aware of <a href="https://twitter.com/#!/search/aws%20reboot">this</a> and was a bit upset of the need. For me, this was the second time since 2009 when Amazon has asked to reboot one of my instances. Once the HW was degraded and now this. I would say it&#8217;s quite a decent score since I have averaged something like five instances running all the time. </p>
<p>I am not upset, on the contrary I am happy AWS keeping the infrastructure up to date, be the reason for the reboot what ever. Besides, the systems should be designed so, that rebooting an instance should not take the service down, if you don&#8217;t accept it (like I do). </p>
<p>The actual process how AWS did inform the customers did feel ok. At first it was of course just rumours, but then I received an email stating the need which gave an acceptable time to react. When I logged in to the AWS Dashboard, I saw this kind of a message:</p>
<p><a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.50.20-PM.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.50.20-PM-300x48.png" alt="Scheduled Events" title="Screen shot 2011-12-08 at 9.50.20 PM" width="300" height="48" class="aligncenter size-medium wp-image-216" /></a></p>
<p>Which had a link to further information:</p>
<p><a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.54.31-PM2.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.54.31-PM2-300x81.png" alt="" title="Screen shot 2011-12-08 at 9.54.31 PM" width="300" height="81" class="aligncenter size-medium wp-image-225" /></a></p>
<p>And even more information:</p>
<p><a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.54.17-PM.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.54.17-PM-300x170.png" alt="" title="Screen shot 2011-12-08 at 9.54.17 PM" width="300" height="170" class="aligncenter size-medium wp-image-218" /></a></p>
<p>There was an option to do the reboot right now if I wanted, so I did it. At first after the reboot, I was looking at the instance in the dashboard, but the notification icon was still there. I would have thought it would disappear. Then I had a look of the details of the event and it actually had [Completed] written infront of the event:</p>
<p><a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.58.22-PM1.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/12/Screen-shot-2011-12-08-at-9.58.22-PM1-300x86.png" alt="" title="Screen shot 2011-12-08 at 9.58.22 PM" width="300" height="86" class="aligncenter size-medium wp-image-226" /></a></p>
<p>Which now probably means it&#8217;s ok and I am done with this. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/aws-reboots-oh-the-drama/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new best AWS feature, CloudFormation</title>
		<link>http://www.dkaiser.com/blog/my-new-best-aws-feature-cloudformation?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-new-best-aws-feature-cloudformation</link>
		<comments>http://www.dkaiser.com/blog/my-new-best-aws-feature-cloudformation#comments</comments>
		<pubDate>Sat, 19 Nov 2011 13:06:48 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[CloudFormation]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[EC2]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=206</guid>
		<description><![CDATA[TweetI just realized AWS has a feature called the CloudFormation which allows users to script their technology stack in a convenient and easily understood JSON formatted text files which can then be used to deploy the stack over and over again, always the same way. Fantastic! This eases a the burden of managing a bunch [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fmy-new-best-aws-feature-cloudformation&amp;text=My%20new%20best%20AWS%20feature%2C%20CloudFormation&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fmy-new-best-aws-feature-cloudformation" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>I just realized AWS has a feature called the <a href="http://aws.amazon.com/cloudformation">CloudFormation</a> which allows users to script their technology stack in a convenient and easily understood JSON formatted text files which can then be used to deploy the stack over and over again, always the same way. Fantastic! This eases a the burden of managing a bunch of customized AMIs or other ways of having some custom features introduced to the AMIs. I wonder how I did not notice this feature before. It even has a tab in the AWS Management Console. There are also some <a href="http://aws.amazon.com/cloudformation/aws-cloudformation-templates/">sample</a> templates which for example install Drupal or a basic Ruby Hello World example. </p>
<p>As a test, I ran the Drupal installation script and I have to say this was by far the easiest Drupal installation I have ever done. <a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/11/Screen-shot-2011-11-18-at-11.14.09-PM.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/11/Screen-shot-2011-11-18-at-11.14.09-PM-300x297.png" alt="" title="Screen shot 2011-11-18 at 11.14.09 PM" width="300" height="297" class="aligncenter size-medium wp-image-207" /></a><a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/11/Screen-shot-2011-11-18-at-11.16.08-PM.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/11/Screen-shot-2011-11-18-at-11.16.08-PM-300x112.png" alt="" title="Screen shot 2011-11-18 at 11.16.08 PM" width="300" height="112" class="aligncenter size-medium wp-image-208" /></a><a href="http://www.dkaiser.com/blog/wp-content/uploads//2011/11/Screen-shot-2011-11-18-at-11.23.55-PM.png"><img src="http://www.dkaiser.com/blog/wp-content/uploads//2011/11/Screen-shot-2011-11-18-at-11.23.55-PM-300x180.png" alt="" title="Screen shot 2011-11-18 at 11.23.55 PM" width="300" height="180" class="aligncenter size-medium wp-image-209" /></a>From start to finish in 5 minutes where most of it was just waiting for the deploy to finish. Absolutely great! Minor thing might be to remember that the security keys are not available in all the Regions, at least not in US East (Virginia) my keys were not available which caused the stack deployment to fail without any good reason except key was not found… I was of course first thinking of a typo in the key name. The other thing is that the user must know the instance type name, such as t1.micro while a drop down menu would be great.</p>
<p>There is also a possibility to modify an existing stack which is actually a relatively new feature. This makes it even more usable. It would be interesting to see if I could do a stack for a simple Aegir installation as lately that&#8217;s the platform I have been installing the most and doing the <a href="http://community.aegirproject.org/node/389">manual installation</a> has become kind of boring. CloudFormation would help lot with that!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/my-new-best-aws-feature-cloudformation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating a site from another Aegir installation</title>
		<link>http://www.dkaiser.com/blog/migrating-a-site-from-another-aegir-installation?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=migrating-a-site-from-another-aegir-installation</link>
		<comments>http://www.dkaiser.com/blog/migrating-a-site-from-another-aegir-installation#comments</comments>
		<pubDate>Wed, 20 Jul 2011 19:44:29 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Aegir]]></category>
		<category><![CDATA[fail]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=202</guid>
		<description><![CDATA[TweetIn case you ever need to migrate a site from some other Aegir installation to a different one, you can follow the instructions here. If you are like me, who has little time between day time job, looking after a kid and sleeping, you tend to skip to the section where it has the code [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fmigrating-a-site-from-another-aegir-installation&amp;text=Migrating%20a%20site%20from%20another%20Aegir%20installation&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fmigrating-a-site-from-another-aegir-installation" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>In case you ever need to migrate a site from some other Aegir installation to a different one, you can follow the instructions <a href="http://community.aegirproject.org/node/117">here</a>. If you are like me, who has little time between day time job, looking after a kid and sleeping, you tend to skip to the section where it has the code you need to copy-paste-edit. Well, if you get something like this when executing your pasted code:</p>
<p><code>PHP Fatal error:  Allowed memory size of 201326592 bytes exhausted (tried to allocate 20 bytes) in /var/aegir/.drush/provision/provision.context.inc on line 31</p>
<p>Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 20 bytes) in /var/aegir/.drush/provision/provision.context.inc on line 31<br />
Drush command terminated abnormally due to an unrecoverable error.       [error]<br />
Error: Allowed memory size of 201326592 bytes exhausted (tried to<br />
allocate 20 bytes) in /var/aegir/.drush/provision/provision.context.inc,<br />
line 31<br />
</code></p>
<p>You had the platform name wrong because you thought it would be the same as the one you gave it when you created it. It&#8217;s not. Do this:</p>
<p><code>drush sa | grep platform</code></p>
<p>To find the real name of the platform and rerun your command and it should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/migrating-a-site-from-another-aegir-installation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon Web Services used in Sony PSN attack</title>
		<link>http://www.dkaiser.com/blog/amazon-web-services-used-in-sony-psn-attack?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amazon-web-services-used-in-sony-psn-attack</link>
		<comments>http://www.dkaiser.com/blog/amazon-web-services-used-in-sony-psn-attack#comments</comments>
		<pubDate>Mon, 16 May 2011 17:02:42 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[Bloomberg]]></category>
		<category><![CDATA[PSN]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=199</guid>
		<description><![CDATA[TweetToday’s breaking news have been Bloomberg’s story about the Sony PSN attack been conducted by using Amazon Web Services. I read the story and feel confused, like how on earth can the source of the servers be any kind of relevancy if they’ve been using a public cloud provider? Come on, Amazon can’t and really [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Famazon-web-services-used-in-sony-psn-attack&amp;text=Amazon%20Web%20Services%20used%20in%20Sony%20PSN%20attack&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Famazon-web-services-used-in-sony-psn-attack" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Today’s breaking <a href="http://www.bloomberg.com/news/2011-05-15/sony-attack-shows-amazon-s-cloud-service-lures-hackers-at-pennies-an-hour.html">news</a> have been Bloomberg’s story about the Sony PSN attack been conducted by using Amazon Web Services. I read the story and feel confused, like how on earth can the source of the servers be any kind of relevancy if they’ve been using a public cloud provider? Come on, Amazon can’t and really should not, follow what their customers do with their servers. This whole thing Bloomberg is writing about is like saying the bank was robbed by a Smith&#038;Wesson and it was Smith&#038;Wesson’s fault.</p>
<p>Of course, there will be a subpoena for getting all the information of the account used in managing the account and I guess they had to use some stolen credit card as well which is interesting. Also, the statement in the Bloomberg’s article about anyone anonymously going and getting an account in AWS is kind of not totally true. Maybe it can be managed somehow if using a stolen credit card, but it’s not an anonymous service as such. And how are you going to prevent that “flaw” in the system of the possibility using stolen cards and false identities? Scan your id and send that as well or visit them at AWS personally? Huh?</p>
<p>In the end of the article, there is a thought-provoking paragraph of “Rethinking the Cloud” because a cloud can be used also for malicious purposes. Yep. I’ll do think about this for a while&#8230;</p>
<p>Thinking&#8230;</p>
<p>Thinking&#8230;</p>
<p>&#8230;and it should not matter for the most parts. Say, the whole AWS would be used only for attacks and the service level would degrade and my IPs would be black listed, then I probably would switch to some other provider, but, right now, I am not worried the least bit. I have my application and the service level I need in a good and healthy balance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/amazon-web-services-used-in-sony-psn-attack/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing with DotCloud</title>
		<link>http://www.dkaiser.com/blog/testing-with-dotcloud?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=testing-with-dotcloud</link>
		<comments>http://www.dkaiser.com/blog/testing-with-dotcloud#comments</comments>
		<pubDate>Wed, 11 May 2011 19:07:25 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[dotcloud]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=195</guid>
		<description><![CDATA[TweetSummer is almost here and it was really the time to clean up my blog a bit. Now there is a much more readable theme and all the CityDeal hamburger campaigns are gone. Hopefully nobody will be missing those? I’ve been writing already about deploying applications instead of virtual machines and how I would like [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Ftesting-with-dotcloud&amp;text=Testing%20with%20DotCloud&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Ftesting-with-dotcloud" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Summer is almost here and it was really the time to clean up my blog a bit. Now there is a much more readable theme and all the CityDeal hamburger campaigns are gone. Hopefully nobody will be missing those?</p>
<p>I’ve been <a href="http://www.dkaiser.com/blog/deploying-applications-instead-of-virtual-machines">writing</a> already about deploying applications instead of virtual machines and how I would like to move away from the machine instance and to a some kind of a service where you could select a system and the service would deploy and manage the needed computing resources. It now seems like this is starting to become a reality as there are providers like <a href="http://www.dotcloud.com">DotCloud</a> and <a href="http://www.phpfog.com">PHP Fog</a> who take care of the infra while the customer just deploys the code.</p>
<p>I requested a beta invite to DotCloud which in contrary to PHP Fog is somewhat more multipurpose with other services than the PHP only. Actually, currently they have java, mysql, nodejs, perl, php, php-worker, postgresql, python, python-worker, rabbitmq, redis, ruby, ruby-worker, smtp, static as the deployment options. They also have some nice <a href="http://docs.dotcloud.com/tutorials/">tutorials </a>about how to use the system. The system is operated mostly locally from CLI and the code is pushed to dotcloud which seems like a nice way to do it as it is analogous to for example editing files locally and then using FTP to transfer the files to a web server.</p>
<p>As a test run, I went with installing WordPress as there is a good <a href="http://docs.dotcloud.com/tutorials/wordpress/">tutorial</a> for that and only a few minutes later I had a running <a href="http://data.kaiser.dotcloud.com/">blog</a> in DotCloud. I’m really liking this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/testing-with-dotcloud/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>US-EAST-1 region outage 21st of April</title>
		<link>http://www.dkaiser.com/blog/us-east-1-region-outage-21st-of-april?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=us-east-1-region-outage-21st-of-april</link>
		<comments>http://www.dkaiser.com/blog/us-east-1-region-outage-21st-of-april#comments</comments>
		<pubDate>Thu, 21 Apr 2011 20:36:29 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[James Hamilton AWS]]></category>
		<category><![CDATA[outage]]></category>
		<category><![CDATA[Quora]]></category>
		<category><![CDATA[Reddit]]></category>
		<category><![CDATA[US-EAST-1]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=190</guid>
		<description><![CDATA[TweetQuora is down, Reddit is in emergency read only mode. Quite severe this is then! According to the first investigation (from the AWS health dashboard) the reason for outage was a networking event which caused a large number of EBS volumes being re-mirrored. This caused capacity problems in the affected region. Also there were problems [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fus-east-1-region-outage-21st-of-april&amp;text=US-EAST-1%20region%20outage%2021st%20of%20April%20&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fus-east-1-region-outage-21st-of-april" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px} -->Quora is down, Reddit is in emergency read only mode. Quite severe this is then!</p>
<p>According to the first investigation (from the <a href="http://status.aws.amazon.com/" target="_blank">AWS health dashboard</a>) the reason for outage was a networking event which caused a large number of EBS volumes being re-mirrored. This caused capacity problems in the affected region. Also there were problems with one control plane which made it difficult to create new EBS volumes and instances. <a href="http://en.wikipedia.org/wiki/Routing_control_plane" target="_blank">Control plane</a> is a piece of router architecture which is responsible of drawing the network map, if you did not know it… I certainly did not know before.</p>
<p>Of course, there are plenty of other services impacted by the outage and I guess this is a great time to see how different services have been designed to sustain a degradation of some underlying components. Quora is totally dead (well, there is the notification to users) and Reddit is in read only mode. I give my points to Reddit as they have managed to fail gracefully to a cached read only mode.</p>
<p>Funny thing, just today I was reading a <a href="http://www.usenix.org/event/lisa07/tech/full_papers/hamilton/hamilton_html/" target="_blank">text</a> by James Hamilton which is spot on this situation. I need to say I am surprised Quora did not have a fail over to a different location as the other location in US seems to be ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/us-east-1-region-outage-21st-of-april/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Amazon Route 53</title>
		<link>http://www.dkaiser.com/blog/working-with-amazon-route-53?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=working-with-amazon-route-53</link>
		<comments>http://www.dkaiser.com/blog/working-with-amazon-route-53#comments</comments>
		<pubDate>Tue, 25 Jan 2011 19:52:51 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[Ficora]]></category>
		<category><![CDATA[Route 53]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=183</guid>
		<description><![CDATA[TweetI wanted to get a fi-domain as I am building a site for our housing company. It&#8217;s very much a pro bono work, but interesting nevertheless. To be honest, this is the first time I have to register a fi-domain and man, it&#8217;s not as easy as getting a com or similar domain with DynDNS [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fworking-with-amazon-route-53&amp;text=Working%20with%20Amazon%20Route%2053&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fworking-with-amazon-route-53" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>I wanted to get a fi-domain as I am building a site for our housing company. It&#8217;s very much a pro bono work, but interesting nevertheless. To be honest, this is the first time I have to register a fi-domain and man, it&#8217;s not as easy as getting a com or similar domain with DynDNS etc. You need to be a Finnish citizen to be allowed to get one for starters and made sure you are not violating any possible trademarks or even more, some real people with your domain name.</p>
<p>I would perhaps been ok if a DynDNS type of service would exists (well, now as I write this it probably does) in Finland, but the ones I came across were mostly just taking orders and not like dynamically updating their resources… but can&#8217;t of course be totally sure. Anyway, I decided to give Amazon Route 53 a go as it is new and I do appreciate the possibility to update the records on command line. Or well, I perhaps did not investigate really too much before signing up.</p>
<p>First I had to though register the fi-domain with Ficora and that took around a day to get the credentials on paper. Yes. On paper. The next step was to register the name and give them two (at this point fictious) name servers. Then I was on my way to Route 53. The first look at the Getting Started Guide is not very encouraging. Need to create some files which contain the access keys and the actual requests. Need to run a perl script to actually create the records. Good thing I bought my first Mac just a few months ago as with Windows this would have sucked.</p>
<p>So the first thing was to create the .aws-secret file which contains your AWS Secret Access Keys it looks something like this:</p>
<p>%awsSecretAccessKeys = (<br />
&#8220;my-keys&#8221; =&gt; {<br />
id =&gt; &#8220;JISEGIOJDFGSLSDKFG&#8221;,<br />
key =&gt; &#8220;KSLDFSDFGSDFGSasdfsdASFDSDF&#8221;,<br />
},<br />
);</p>
<p>And it really needs to be named .aws-secret and have only read permissions as the dnscurl.pl checks this.</p>
<p>Then create the zone you have registered:</p>
<p>&lt;CreateHostedZoneRequest xmlns=&#8221;https://route53.amazonaws.com/doc/2010-10-01/&#8221;&gt;<br />
&lt;Name&gt;YOURDOMAIN.fi.&lt;/Name&gt;<br />
&lt;CallerReference&gt;SOMETHINGRANDOMHERE&lt;/CallerReference&gt;<br />
&lt;HostedZoneConfig&gt;<br />
&lt;Comment&gt;Creating first zone&lt;/Comment&gt;<br />
&lt;/HostedZoneConfig&gt;<br />
&lt;/CreateHostedZoneRequest&gt;</p>
<p>Then download dnscurl.pl from the AWS developer tools and run it with these parameters:</p>
<p>dnscurl.pl &#8211;keyname my-keys &#8212; -X POST -H &#8220;Content-Type: text/xml; charset=UTF-8&#8243; &#8211;upload-file MyCreateRequest.xml https://route53.amazonaws.com/2010-10-01/hostedzone</p>
<p>You should get something like this in return:</p>
<p>&lt;CreateHostedZoneResponse xmlns=&#8221;https://route53.amazonaws.com/doc/2010-10-01/&#8221;&gt;&lt;HostedZone&gt;&lt;Id&gt;/hostedzone/34LJSKFSJGSDFKJ&lt;/Id&gt;&lt;Name&gt;YOURDOMAIN.fi.&lt;/Name&gt;&lt;CallerReference&gt;JIjasdmfasfw4af3233&lt;/CallerReference&gt;&lt;Config&gt;&lt;Comment&gt;Creating first zone&lt;/Comment&gt;&lt;/Config&gt;&lt;/HostedZone&gt;&lt;ChangeInfo&gt;&lt;Id&gt;/change/23ILKSFJDLSK&lt;/Id&gt;&lt;Status&gt;PENDING&lt;/Status&gt;&lt;SubmittedAt&gt;2011-01-24T20:48:47.715Z&lt;/SubmittedAt&gt;&lt;/ChangeInfo&gt;&lt;DelegationSet&gt;&lt;NameServers&gt;&lt;NameServer&gt;ns-1778.awsdns-30.co.uk&lt;/NameServer&gt;&lt;NameServer&gt;ns-372.awsdns-44.com&lt;/NameServer&gt;&lt;NameServer&gt;ns-1621.awsdns-38.org&lt;/NameServer&gt;&lt;NameServer&gt;ns-534.awsdns-04.net&lt;/NameServer&gt;&lt;/NameServers&gt;&lt;/DelegationSet&gt;&lt;/CreateHostedZoneResponse&gt;</p>
<p>Here are the real name servers which I had to give to Ficora and it happily said them being ok, so fi-domain is well supported by AWS! Yey!</p>
<p>Then you can start adding records to your zone. First need to create the MyRecordsRequest.xml for the records which could look like this:</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;ChangeResourceRecordSetsRequest xmlns=&#8221;https://route53.amazonaws.com/doc/2010-10-01/&#8221;&gt;<br />
&lt;ChangeBatch&gt;<br />
&lt;Comment&gt;<br />
Create A-record<br />
&lt;/Comment&gt;<br />
&lt;Changes&gt;<br />
&lt;Change&gt;<br />
&lt;Action&gt;CREATE&lt;/Action&gt;<br />
&lt;ResourceRecordSet&gt;<br />
&lt;Name&gt;www.yourdomain.fi.&lt;/Name&gt;<br />
&lt;Type&gt;A&lt;/Type&gt;<br />
&lt;TTL&gt;14400&lt;/TTL&gt;<br />
&lt;ResourceRecords&gt;<br />
&lt;ResourceRecord&gt;<br />
&lt;Value&gt;192.0.0.111&lt;/Value&gt;<br />
&lt;/ResourceRecord&gt;<br />
&lt;/ResourceRecords&gt;<br />
&lt;/ResourceRecordSet&gt;<br />
&lt;/Change&gt;<br />
&lt;/Changes&gt;<br />
&lt;/ChangeBatch&gt;<br />
&lt;/ChangeResourceRecordSetsRequest&gt;</p>
<p>dnscurl.pl &#8211;keyname my-keys &#8212; -H &#8220;Content-Type: text/xml; charset=UTF-8&#8243; -X POST &#8211;upload-file ./MyRecordsRequest.xml https://route53.amazonaws.com/2010-10-01/hostedzone/34LJSKFSJGSDFKJ/rrset</p>
<p>And you should get a response like this:<br />
0.0%<br />
&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;ChangeResourceRecordSetsResponse xmlns=&#8221;https://route53.amazonaws.com/doc/2010-10-01/&#8221;&gt;&lt;ChangeInfo&gt;&lt;Id&gt;/change/C3FMNWCVL1YW40&lt;/Id&gt;&lt;Status&gt;PENDING&lt;/Status&gt;&lt;SubmittedAt&gt;2011-01-25T19:16:24.181Z&lt;/SubmittedAt&gt;&lt;/ChangeInfo&gt;&lt;/ChangeResourceRecordSetsResponse&gt;</p>
<p>I got a few problems with &#8220;root is not authorized to perform: route53:ChangeResourceRecordSets on resource&#8221; because I did not have ./ in front of the MyRecordsRequest.xml, so remember to have it there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/working-with-amazon-route-53/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pageload performance with Aegir</title>
		<link>http://www.dkaiser.com/blog/pageload-performance-with-aegir?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pageload-performance-with-aegir</link>
		<comments>http://www.dkaiser.com/blog/pageload-performance-with-aegir#comments</comments>
		<pubDate>Sun, 23 Jan 2011 19:37:32 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Aegir]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=179</guid>
		<description><![CDATA[TweetI&#8217;ve been working with Aegir recently to get some ideas how to host multiple Drupal sites in a somewhat automated and scalable way. To my surprise the performance was actually a lot better with the t1.micro instance which runs the Aegir platform than what I get from the small instance. A video below has a [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fpageload-performance-with-aegir&amp;text=Pageload%20performance%20with%20Aegir&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fpageload-performance-with-aegir" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>I&#8217;ve been working with <a href="http://groups.drupal.org/aegir-hosting-system">Aegir</a> recently to get some ideas how to host multiple Drupal sites in a somewhat automated and scalable way. To my surprise the performance was actually a lot better with the t1.micro instance which runs the Aegir platform than what I get from the small instance. A video below has a demo when running the identical sites on both servers:</p>
<p><object id="flashvideo" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="movie" value="http://vkaiser.com/sites/default/files/PlayerJW.swf" /><param name="FlashVars" value="file=http://s3.amazonaws.com/video.dkaiser.com-sites-default-files/aegir_267.flv&#038;image=http://s3.amazonaws.com/video.dkaiser.com-sites-default-files/aegir_267.jpg&#038;rotatetime=10&#038;logo=http://vkaiser.com/sites/default/files/vkaiserwm.png&#038;link=http://www.vkaiser.com&#038;autostart=false" /><param name="quality" value="high" /><param name="wmode" value="window" /><param name="allowfullscreen" value="true" /><embed name="flashvideo" allowScriptAccess="always" src="http://vkaiser.com/sites/default/files/PlayerJW.swf"     width="480"     height="300"     border="0"     type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"     wmode="window"     allowfullscreen="true"    quality="high"     flashvars="file=http://s3.amazonaws.com/video.dkaiser.com-sites-default-files/aegir_267.flv&#038;image=http://s3.amazonaws.com/video.dkaiser.com-sites-default-files/aegir_267.jpg&#038;rotatetime=10&#038;logo=http://vkaiser.com/sites/default/files/vkaiserwm.png&#038;link=http://www.vkaiser.com&#038;autostart=false" /></embed></object></p>
<p>The pageload was around 2.6 seconds with the standard Drupal installation and around a second faster with the Aegir platform. The site on Aegir was dump from the other site taken a few days ago with no significant differences. Have to say I really really like Aegir!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/pageload-performance-with-aegir/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Aegir on Fedora 8</title>
		<link>http://www.dkaiser.com/blog/installing-aegir-on-fedora-8?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-aegir-on-fedora-8</link>
		<comments>http://www.dkaiser.com/blog/installing-aegir-on-fedora-8#comments</comments>
		<pubDate>Sun, 23 Jan 2011 19:26:08 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=176</guid>
		<description><![CDATA[TweetThese are more like notes for myself, but I am happy to share if someone else would be interested. No warranties though, if you can&#8217;t get Aegir running with these notes :) Get the packages: yum install httpd php php-mysql php-gd mysql-server postfix sudo rsync git-core unzip alpine screen Set the PHP.ini memory limits, 192M [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Finstalling-aegir-on-fedora-8&amp;text=Installing%20Aegir%20on%20Fedora%208&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Finstalling-aegir-on-fedora-8" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>These are more like notes for myself, but I am happy to share if someone else would be interested. No warranties though, if you can&#8217;t get Aegir running with these notes :)</p>
<p>Get the packages:</p>
<p><em>yum install httpd php php-mysql php-gd mysql-server postfix sudo rsync git-core unzip alpine screen</em></p>
<p>Set the PHP.ini memory limits, 192M works ok</p>
<p>Fix your DNS and how your host resolves:</p>
<p>edit /etc/hosts</p>
<p>x.x.x.x  FQDN hostname</p>
<p><em>hostname FQDN</em></p>
<p>Install MTA (I run Postfix, so just copypaste from other server)</p>
<p>upload posfix configuration to /etc/postfix</p>
<p>Edit the /etc/postfix/canonical</p>
<p>This will rewrite the name which Drupal uses to send emails to what you need</p>
<p>create canonical db</p>
<p><em>postmap /etc/postfix/canonical<br />
service postfix start</em></p>
<p>Create a group for the Aegir user and which Apache uses as well:</p>
<p><em>groupadd www-data</em></p>
<p>edit /etc/httpd/conf/httpd.conf to run as www-data</p>
<p>The Aegir user home folder needs to have 755 as the permissions (at least this works)</p>
<p><em>adduser -r &#8211;groups www-data &#8211;home-dir /var/home/aegiruser aegiruser<br />
</em><br />
Edit the httpd.conf to have the Aegir confs included</p>
<p><em>Include /var/home/providus/config/apache.conf</em></p>
<p>Edit sudoers file</p>
<p><em>aegiruser ALL=NOPASSWD: /usr/sbin/apachectl</em></p>
<p>start mysqld</p>
<p><em>/usr/bin/mysqladmin -u root password &#8216;password&#8217;</em></p>
<p><em>wget -O /tmp/install.sh &#8216;http://git.aegirproject.org/?p=provision.git;a=blob_plain;f=install.sh.txt;hb=provision-0.4-beta2&#8242;</p>
<p>su -s /bin/sh aegiruser -c &#8220;sh /tmp/install.sh&#8221;</p>
<p>./drush/drush.php dl drupal<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/installing-aegir-on-fedora-8/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

