<?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>Tony's Place &#187; cloud</title>
	<atom:link href="http://www.tonycode.com/blog/archives/tag/cloud/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tonycode.com/blog</link>
	<description>Random thoughts</description>
	<lastBuildDate>Tue, 23 Feb 2010 01:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>My experience with Rackspace Cloud Sites</title>
		<link>http://www.tonycode.com/blog/archives/133</link>
		<comments>http://www.tonycode.com/blog/archives/133#comments</comments>
		<pubDate>Wed, 04 Nov 2009 18:17:34 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[rackspace]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/?p=133</guid>
		<description><![CDATA[I&#8217;ve been using Rackspace&#8217;s Cloud Servers for months now and I thought moving some of our standard PHP apps (like wordpress) to Cloud Sites would save me some time as a sysadmin/developer.  I also figured I would setup a database there and use it for my Rails application that runs on Cloud servers (instead of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Rackspace&#8217;s Cloud Servers for months now and I thought moving some of our standard PHP apps (like wordpress) to Cloud Sites would save me some time as a sysadmin/developer.  I also figured I would setup a database there and use it for my Rails application that runs on Cloud servers (instead of building my own or using Amazon&#8217;s RDS).</p>
<p>I&#8217;m sorry to say that after a few days of working with Cloud Sites, I think managing the sites myself on Cloud Servers would be easier.   Fortunately, many of the problems I am having can be easily fixed.</p>
<h2>My issues</h2>
<p>1) No rsync or scp access.  Installing a wordpress site via FTP or Rackspaces file manager was just plain painful.  The file manager didn&#8217;t allow me to move files and it always extracted zip files to the root directory.  Maybe it works correctly on IE?   I only run linux so I have no way of knowing.</p>
<p>2) No easy way to do backups.   Cloud Sites allow you to run cron jobs but the example backups build tarballs on the same host that the site is running on.  When I saw they had ruby as a cron shell option I assumed they had the CloudFiles gem installed,  but they didn&#8217;t.  I want my backups off moved off the host.  I don&#8217;t want to log into my account and download them manually.</p>
<p>3) No access to database binary logs.  I like to take a snapshot every 15 minutes or so in case I lose my database but this is not an option with the cloudsites database.  You could do a mysql dump from another host but you probably don&#8217;t want to do this every 15 minutes.</p>
<p>4) For my Cloud Server rails app there was no LAN address to access my Cloud Site database so all my queries incurred bandwidth charges.</p>
<h2>Feature Requests (easy to hard)</h2>
<p>1) Give people a cron job (or simple backup tab like cloud servers has) that can be used to dump their database daily to Cloud Files.  Its a win for everyone.  The user gets automated backup and you get more Cloud Files revenue.   Here is a script I run from a Cloud Server to back up my Cloud Site database nightly (I can not run it as a Cloud Site job as the CloudFiles gem is not installed on the hosts..  as i mentioned above).</p>
<pre>def run(command)
  result = system(command)
  raise("error, process exited with status #{$?.exitstatus}") unless result
end

cf = CloudFiles::Connection.new(@account_name, @cloud_key)
container = cf.container(@directory_name)
cmd = "mysqldump -C --opt -h #{@mysql_host} -u#{@mysql_user}  "
cmd += " -p'#{@mysql_password}'" unless @mysql_password.nil?
cmd += " #{@mysql_database} | gzip &gt; #{@backup_directory}#{@db_file}"
run(cmd)
t = container.create_object(@db_file)
t.load_from_filename "#{@backup_directory}#{@db_file}"</pre>
<p>2) Advertise the LAN address of the Database Hosts&#8230;  of course the address given now is probably a switch that hits several DB machines.</p>
<p>3) Fix the File Manager.   Maybe it&#8217;s just me but on Firefox/Linux moving files doesn&#8217;t work.  A crippled version of rsync may also be nice.  I suspect there are security issues here but shell access sure would be nice.</p>
<p>4) This is probably hard but it would be nice if I could get access to the MySQL binary logs.</p>
<p>Thanks for listening.  <img src='http://www.tonycode.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/133/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Why I chose The Rackspace Cloud over AWS</title>
		<link>http://www.tonycode.com/blog/archives/122</link>
		<comments>http://www.tonycode.com/blog/archives/122#comments</comments>
		<pubDate>Thu, 03 Sep 2009 13:05:40 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[rackspace]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/?p=122</guid>
		<description><![CDATA[Last October at BarCamp DC 2 I ran a session called  “To Cloud or Not? AWS, EC2, S3 or build your own“.  Unfortunately the barcamp wiki died and my notes are gone but at the time it seemed that everyone loved Amazon&#8217;s services.   I tried using EC2 in April and while the ablity to select [...]]]></description>
			<content:encoded><![CDATA[<p>Last October at BarCamp DC 2 I ran a session called  <a title="To Cloud or Not? AWS, EC2, S3" href="http://www.tonycode.com/blog/archives/80" target="_blank">“To Cloud or Not? AWS, EC2, S3 or build your own</a>“.  Unfortunately the barcamp wiki died and my notes are gone but at the time it seemed that everyone loved Amazon&#8217;s services.   I tried using EC2 in April and while the ablity to select from several pre-configured AMIs was nice, building your own AMI should have been easier.  I wanted to configure my machine and then push a button to have my image created.   With Amazon you needed to install tools and go through several steps to create an image.</p>
<p>Then I found Slicehost.  It was owned by Rackspace and had servers for as little as $20/month (for a 256MB instance).   A few weeks later I stumbled on Mosso, also owned by Rackspace and it had servers for about $11/month (plus bandwidth).   Since my applications were using very little bandwidth, I moved to Mosso which is now called <a href="http://www.rackspacecloud.com/" target="_blank">The Rackspace Cloud</a>.   With the Rackspace offerings you install your operating system image, <a href="http://cloudservers.mosso.com/index.php/List_of_Articles#CentOS" target="_blank">configure it</a> and then, from their control panel you can then back it up with 1 click.  You can also schedule backups.   This was so much easier than EC2.</p>
<p>Then there is the pricing.  Amazon&#8217;s small instance is a big vitrual machine and at $0.10/hour it runs around $70/month (i think it was 0.12/hour when I 1st started using it).    This is probably a good price if you need that much horsepower.    What could you possibly run from a 256MB instance anyway?  Here&#8217;s what I am running.</p>
<ul>
<li>A full rails app using Apache/Passenger and MySql (I had to remove several unused modules from apache config and my database is small at the moment)</li>
<li>Apache PHP &#8212; I don&#8217;t have a database here but I suspect there is room</li>
</ul>
<p>I suspect a 512MB instance a safe bet for most applications and I will lilely upgrade as my traffic and database size increases.   Depending on the situation, I may just spin up more instances of the same server as redunancy is a good thing.   Sure I could run everything on 1 AWS instance but if it dies I&#8217;m really SOL.</p>
<p>If you ever need a bigger slice you can upgrade in the control panel with 1 click.  All your configurations and IP address are kept the same. I usually make a backup (1 click) before doing this just in case something bad happens.</p>
<p>Rackspace is still making improvements to their APIs and Image Management so while they don&#8217;t offer as many services as Amazon, they have offered all important features to make developer&#8217;s lives easier, IMO.</p>
<p>For the record, I actually backup my Rackspace Databases to Amazon&#8217;s S3, I feel better knowing my backups are in a different datacenter.  <img src='http://www.tonycode.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>If you sign up (and found this post helpful) please use my referral code when creating your account.  It is REF-TONYCODE</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/122/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
