<?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>Dillon Amburgey&#039;s Blog &#187; rackspace</title>
	<atom:link href="http://blog.dillona.com/tag/rackspace/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dillona.com</link>
	<description>A selection of my thoughts</description>
	<lastBuildDate>Thu, 24 Jun 2010 16:57:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using Rackspace Servicenet with Rails</title>
		<link>http://blog.dillona.com/2010/01/18/using-rackspace-servicenet-with-rails/</link>
		<comments>http://blog.dillona.com/2010/01/18/using-rackspace-servicenet-with-rails/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 04:55:18 +0000</pubDate>
		<dc:creator>Dillon Amburgey</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.dillona.com/?p=45</guid>
		<description><![CDATA[One of the reasons that I use Rackspace Cloud Files and Cloud Servers is that the data transferred between the two is free. As such, it struck me as odd when I discovered the network interface which handles such communication hadn&#8217;t been used on my server. Upon some further digging, it was in fact clear that I [...]]]></description>
			<content:encoded><![CDATA[<p>One of the reasons that I use Rackspace Cloud Files and Cloud Servers is that the data transferred between the two is free. As such, it struck me as odd when I discovered the network interface which handles such communication hadn&#8217;t been used on my server. Upon some further digging, it was in fact clear that I had been charged for all of my data between the two.</p>
<p>The trick is that a different host name must be connected to for the requests to be processed over the internal network (and hence for free). Luckily, the &#8216;cloudfiles&#8217; Ruby gem has a poorly documented way to do this. All you have to do is set an environmental variable named &#8220;RACKSPACE_SERVICENET&#8221;.</p>
<p>I accomplished this by adding the following code to the end of my production environmental configuration file:</p>
<pre># Enable Rackspace Servicenet usage

# Uses eth1 to send free traffic to Cloud Files

ENV['RACKSPACE_SERVICENET'] = "true"</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.dillona.com/2010/01/18/using-rackspace-servicenet-with-rails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
