<?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>Sankasaurus &#187; cloud</title>
	<atom:link href="http://blog.pas.net.au/tag/cloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pas.net.au</link>
	<description>Just another tech blog - ranting since 2006</description>
	<lastBuildDate>Wed, 25 Aug 2010 21:40:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backups by design on AWS EC2</title>
		<link>http://blog.pas.net.au/2009/12/backups-by-design-on-aws-ec2/</link>
		<comments>http://blog.pas.net.au/2009/12/backups-by-design-on-aws-ec2/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 19:06:06 +0000</pubDate>
		<dc:creator>Peter Sankauskas</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[scaling]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blog.pas.net.au/?p=63</guid>
		<description><![CDATA[My good mate* Joel Spolsky wrote a nice piece about backups (or rather, restoration), and I wanted to echo his remarks and how they relate to using AWS EC2.
If you are using EC2, you will quickly find that if an instance is terminated, any data on that instance is gone &#8211; lost forever. At first, [...]]]></description>
			<content:encoded><![CDATA[<p>My good mate* Joel Spolsky wrote a <a href="http://www.joelonsoftware.com/items/2009/12/14.html">nice piece about backups (or rather, restoration)</a>, and I wanted to echo his remarks and how they relate to using AWS EC2.</p>
<p>If you are using EC2, you will quickly find that if an instance is terminated, any data on that instance is gone &#8211; lost forever. At first, this seems like a terrible idea, but in fact, it encourages you to get into best practices, and discover the awesome benefits of EBS.</p>
<p>We have many instances running of different types. We have built a &#8220;custom&#8221; Debian AMI for each of the instance types we use (web, database, management, etc). If you were to launch an instance with one of these AMIs, you would not have a fully working system. That is because these AMIs have sym-links for important and/or dynamic data. For example, on the web AMI we have created, /etc/apache2, /etc/php5/ and /var/www are all sym-links. To where? A directory that an EBS volume is mounted to. That&#8217;s right, all of the web configuration and website code only lives in an EBS volume. It is simple enough to write a little script that creates a nightly Snapshots of each EBS volume.</p>
<p>Now for the power of this setup. Every time you want to bring up another instance of the same type (say, for horizontally scaling), you are in fact doing a restoration from backup. Take a Snapshot (your backup), create an EBS volume, attach it to the new instance, and make it live! This doesn&#8217;t just work for scaling, it works for bringing up staging servers that are mirrors of production or running experiments without affecting production.</p>
<p>We can even take it a step further! Those AMIs and Snapshots are all stored in S3 &#8211; data available to the whole Region. An instance and EBS volume exist in only 1 of the Availability Zones within that Region. You can use your backups to restore into a new Availability Zone which you can use to create a high-availability solution.</p>
<p>Happy scaling!</p>
<p>* I don&#8217;t know Joel personally &#8211; we have never met &#8211; but I do follow his work, like his company and LOVE <a href="http://www.fogcreek.com/FogBugz/">Fogbugz</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pas.net.au/2009/12/backups-by-design-on-aws-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rackspace Cloud API PHP Library</title>
		<link>http://blog.pas.net.au/2009/08/rackspace-cloud-api-php-library/</link>
		<comments>http://blog.pas.net.au/2009/08/rackspace-cloud-api-php-library/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 05:42:21 +0000</pubDate>
		<dc:creator>Peter Sankauskas</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rackspace cloud]]></category>

		<guid isPermaLink="false">http://blog.pas.net.au/?p=42</guid>
		<description><![CDATA[I am pleased to annouce my very first open source project hosted at github. The project, called Rackspace Cloud PHP Library is a simple, single PHP file to easily make Cloud Server API calls. Rackspace have not yet released any libraries for their API, possibly because it is still kind of in beta. If they [...]]]></description>
			<content:encoded><![CDATA[<p>I am pleased to annouce my very first open source project hosted at <a href="http://github.com/">github</a>. The project, called <strong><a href="http://github.com/pas256/Rackspace-Cloud-PHP-Library">Rackspace Cloud PHP Library</a></strong> is a simple, single PHP file to easily make <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers/api">Cloud Server API</a> calls. Rackspace have not yet released any libraries for their API, possibly because it is still kind of in beta. If they do, I believe there will be of little use for my project, but right now, it has value.</p>
<p>So what was my motivation for this?</p>
<p>Well the <a href="https://manage.rackspacecloud.com/">Rackspace Cloud Management Console</a> is severly lacking in features. Things such as creating an image of a server (just like you can in AWS EC2), and sharing an IP address between servers (something you cannot do in EC2 &#8211; an IP address can only be attached to a single instance at a time). It is this second feature that I am most interested in because it means I can use a virtual IP address (floating IP) to create a HA (highly available) &#8220;cluster&#8221; of Tomcat servers. I plan on using <a href="http://www.keepalived.org/">keepalived</a> to do the IP switching, and Apache with <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html">mod_proxy_balancer</a> and <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html">mod_proxy_ajp</a> to talk to multiple Tomcat servers. Without reading the <a href="http://docs.rackspacecloud.com/servers/api/cs-devguide-latest.pdf">poorly written API documention</a> and learning that I could create a shared IP group, I would not have known this was possible.</p>
<p>This project is very much a work in progress, and what is in there now represents only about 8 hours of work. I welcome any feedback, and anyone else who wants to join.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pas.net.au/2009/08/rackspace-cloud-api-php-library/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
