<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Inquisitr &#187; amazon s3</title>
	<atom:link href="http://www.inquisitr.com/tag/amazon-s3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inquisitr.com</link>
	<description>The Better Mix</description>
	<lastBuildDate>Tue, 24 Nov 2009 22:59:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Amazon Cloudfront CDN with a WordPress Blog</title>
		<link>http://www.inquisitr.com/41869/amazon-cloudfront-cdn-with-a-wordpress-blog/</link>
		<comments>http://www.inquisitr.com/41869/amazon-cloudfront-cdn-with-a-wordpress-blog/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 05:47:49 +0000</pubDate>
		<dc:creator>Duncan Riley</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[amazon cloudfront]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[inquisitr]]></category>

		<guid isPermaLink="false">http://www.inquisitr.com/?p=41869</guid>
		<description><![CDATA[
Regular readers will know that for the last month and a bit, we&#8217;ve been in a never ending battle of wills against servers and load times. 
Our first major change was implementing Amazon&#8217;s S3 service to serve static files from the site. It helped, but in the end we ended up moving to Rackspace Cloud [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://images.inquisitr.com/wp-content/2009/10/Amazon-CloudFront.jpg" alt="Amazon CloudFront" title="Amazon CloudFront" width="484" height="195" class="aligncenter size-full wp-image-41873" /></p>
<p>Regular readers will know that for the last month and a bit, we&#8217;ve been in a never ending battle of wills against servers and load times. </p>
<p>Our first major change was implementing <a href="http://www.inquisitr.com/39348/using-amazon-s3-for-image-hosting-with-a-wordpress-blog/">Amazon&#8217;s S3 service</a> to serve static files from the site. It helped, but in the end we ended up <a href="http://www.inquisitr.com/40726/it-was-the-best-of-times-it-was-the-worst-of-times-or-why-were-with-rackspace/">moving to Rackspace Cloud Sites</a> to finally get a grip on the server issues we were having. </p>
<p>Since moving last Monday, the site has mostly purred, and since I&#8217;ve been looking for ways to improve load time again. One thing that did surprise me that as much as the files served from Amazon S3 were being served well, there was some latency there, and it wasn&#8217;t as quick as I&#8217;d hoped for, even if it did help decrease the load on our core hosting setup.</p>
<p>If you know about CDN&#8217;s and how to set them up, you should probably stop reading from this point, because the following isn&#8217;t going to be a detailed, or perhaps completely accurate technical description. </p>
<p><strong>What is a CDN</strong></p>
<p>A Content Delivery Network (CDN) is a network of server locations that deliver your content in multiple locations. Traditionally, if someone visited your site, they&#8217;d pull all your locally hosted static files (images, js, css) off your server directly. With a CDN setup, they pull those static files from their closest CDN, so for example if you were in Europe, the static files would be served from a local node of the CDN network. What this means is that your static files are quicker to load because they are served from a closer location, and although you&#8217;re still serving some files (php etc) from your original server, the end user gets the page quicker.</p>
<p>Each node in the CDN takes a copy and cache&#8217;s that for local traffic. The bigger the CDN network, the quicker load times are for most because there are more closer nodes to serve the static files.</p>
<p><strong>Amazon Cloudfront</strong></p>
<p>The reason we&#8217;ve implemented Amazon Cloudfront was one of ease of use: we already had Amazon S3 set up, so it was simply a matter of 5 minutes and bingo: CDN. A number of people have pointed out to me that given the site is on Rackspace, we have access to Rackspace Files, which uses the Limelight CDN network. The Limelight CDN network is superior as a CDN, not only because they have an Australian presence where as Amazon doesn&#8217;t, but sheer global presence. </p>
<p>However, the WordPress tools to set up Rackspace Files aren&#8217;t as easy to use as those available for Amazon, and we already have files on S3, which cut out the need to transfer a ton of image files across as well. Ultimately Rackspace Files (with Limelight) will offer a better solution, but for now we implement what we can with the tools at hand.</p>
<p><strong>Setup</strong></p>
<p>To setup Amazon Cloudfront with WordPress, you need S3 to begin with: read <a href="http://www.inquisitr.com/39348/using-amazon-s3-for-image-hosting-with-a-wordpress-blog/">Using Amazon S3 for image hosting with a WordPress blog</a>. The cool thing about Cloudfront is that it pulls data from pre-existing S3 files, so there&#8217;s no transfers required, it&#8217;s just a matter of setting things up.</p>
<p>Paul Stamatiou has the best guide <a href="http://paulstamatiou.com/how-to-getting-started-with-amazon-cloudfront">for setup here</a>, and I won&#8217;t attempt to replicate it all (he has pictures as well). The key points though:</p>
<p>- Go into Amazon Web Services and enable Cloudfront<br />
- Using S3Fox, select the bucket (folder) on S3 you want to add to the CDN, right click, and pick manage distributions<br />
- Add a name for the distro (Amazon Cloudfront), tick the &#8220;enable the distribution&#8221; box, pick a CName (in our case, turbo.inquisitr.com) and click create distribution<br />
- you then get a resource URL. Using the instructions in our S3 guide (or via your host on how to setup a CName), using the details given, setup a Cname for your URL (turbo.yourname.com) pointing at the Cloudfront URL.</p>
<p>This is where I did it differently. Presuming you&#8217;re on S3 and you&#8217;ve got something like images.yourname.com for your S3 content, download <a href="http://wordpress.org/extend/plugins/cdn-rewrites/">the CDN Rewrites plugin here</a> and install it. Once that&#8217;s setup, you simply need to tell it to redirect any URL from images.yourname.com to turbo.yourname.com (and this presumes you&#8217;ve got your files on S3 to start with, if you haven&#8217;t, this won&#8217;t work.) Select the options as fit, for example images, css, js etc&#8230;</p>
<p>Besides some little bugs with a thumbnail plugin we&#8217;re using (not related at all to Cloudfront), our page load times have been cut by between 40% and 80% (the former, only when we&#8217;re loading a full image to then make the thumbnail.) On one test, Pingomatic went from 8.7 seconds before to 2.9 seconds after&#8230;and that&#8217;s staggering. I don&#8217;t get the full effect in Australia because there&#8217;s no local CDN, but even I can see the difference here. </p>
<p>If you&#8217;re under load stress, and what to make you site load quicker, a CDN might be right for you.</p>


<p>Related posts:<ol><li><a href='http://www.inquisitr.com/39348/using-amazon-s3-for-image-hosting-with-a-wordpress-blog/' rel='bookmark' title='Permanent Link: Using Amazon S3 for image hosting with a WordPress blog'>Using Amazon S3 for image hosting with a WordPress blog</a></li><li><a href='http://www.inquisitr.com/45626/review-our-first-month-on-the-rackspace-cloud/' rel='bookmark' title='Permanent Link: Review: Our First Month On The Rackspace Cloud'>Review: Our First Month On The Rackspace Cloud</a></li><li><a href='http://www.inquisitr.com/40726/it-was-the-best-of-times-it-was-the-worst-of-times-or-why-were-with-rackspace/' rel='bookmark' title='Permanent Link: It was the best of times, it was the worst of times (or why we&#8217;re with Rackspace)'>It was the best of times, it was the worst of times (or why we&#8217;re with Rackspace)</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/www.inquisitr.com/p=41869</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:thumbnail url="http://images.inquisitr.com/wp-content/2009/10/Amazon-CloudFront-100x100.jpg" />
		<media:content url="http://images.inquisitr.com/wp-content/2009/10/Amazon-CloudFront.jpg" medium="image">
			<media:title type="html">Amazon CloudFront</media:title>
			<media:thumbnail url="http://images.inquisitr.com/wp-content/2009/10/Amazon-CloudFront-100x100.jpg" />
		</media:content>
	</item>
		<item>
		<title>Using Amazon S3 for image hosting with a WordPress blog</title>
		<link>http://www.inquisitr.com/39348/using-amazon-s3-for-image-hosting-with-a-wordpress-blog/</link>
		<comments>http://www.inquisitr.com/39348/using-amazon-s3-for-image-hosting-with-a-wordpress-blog/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 07:27:47 +0000</pubDate>
		<dc:creator>Duncan Riley</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[cloud hosting]]></category>

		<guid isPermaLink="false">http://www.inquisitr.com/?p=39348</guid>
		<description><![CDATA[
The promise of Amazon S3 cloud hosting has been discussed extensively across the tech blogosphere, but for those of us who aren&#8217;t coders by trade, tapping into that potential does appear to be a serious challenge from the outside.
Regular readers would know that at times The Inquisitr isn&#8217;t as quick as it should be. Despite [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://images.inquisitr.com/wp-content/Amazon-s3.jpg" alt="Amazon s3" title="Amazon s3" width="499" height="267" class="aligncenter size-full wp-image-39349" /></p>
<p>The promise of Amazon S3 cloud hosting has been discussed extensively across the tech blogosphere, but for those of us who aren&#8217;t coders by trade, tapping into that potential does appear to be a serious challenge from the outside.</p>
<p>Regular readers would know that at times The Inquisitr isn&#8217;t as quick as it should be. Despite spending a small fortune on a Media Temple Nitro Server, our peak loads slow the site down, and more recently that&#8217;s meant the occasional database error as well. The next stage was a load server, but that would be a pretty penny on top of what we&#8217;re paying already. Thanks to some friendly advice from <a href="http://www.wayne-robinson.com">Wayne Robinson</a>, there was another alternative: Amazon S3 for image hosting.</p>
<p>The key on our end is to bring the CPU load down (the memory has never once been taxed). Most of the load is SQL related, but add to that posts with larger images, and the constant bane of late of people hot linking our images, and combined we&#8217;ve managed to get CPU load out to as high as 70x what it should be. </p>
<p>As of yesterday, all new images being uploaded for posts, and a sizable portion of the template images (the ones I&#8217;ve dragged across) are served by Amazon. Early days yet, but I saw the CPU load hit 0.03x at one stage today (be it briefly) on a reasonable live traffic count, and I don&#8217;t remember ever seeing it go so low.</p>
<p><strong>What you&#8217;ll need</strong></p>
<p>If you&#8217;re using WordPress, head straight to the Amazon S3 plugin (<a href="http://wordpress.org/extend/plugins/tantan-s3/">here</a>). At the time of writing it claims it&#8217;s only compatible up to WordPress 2.7, but it&#8217;s working fine on my 2.8.4 install. There&#8217;s also a WordPress Amazon S3 backup plugin available (<a href="http://wordpress.org/extend/plugins/wp-s3-backups/">here</a>), you don&#8217;t need it for image hosting, but if you&#8217;ve ever been slack with backups, it&#8217;s a handy plugin to have. </p>
<p>You&#8217;ll also need Firefox plugin S3Fox (<a href="https://addons.mozilla.org/en-US/firefox/addon/3247">here</a>) as well. I do most of my browsing on Safari, but I use Firefox for dev work. There&#8217;s probably an IE plugin/ add on out there as well, you&#8217;d have to look. The Firefox plugin gives you quick and easy access to your S3 account; if you&#8217;ve used an ftp program before you&#8217;ll immediately be able to use S3Fox.</p>
<p>Naturally you&#8217;ll need an Amazon S3 account. You can <a href="http://aws.amazon.com/s3/">sign up here</a>. If you&#8217;ve got an existing Amazon account, you use that to log in, and if you have a credit card on file with that account, you use that. Everyone raves about how cheap S3 is but I won&#8217;t profess to be able to explain how much it costs. What I do know is that 24 hours after signing up, we&#8217;ve racked up a bill of 56c. As we&#8217;ll be pushing more and more images onto the server this will go up, but if it ends up at $5-$10 a day, I won&#8217;t be the least bit concerned. </p>
<p><strong>Set Up Round One</strong></p>
<p>Once you&#8217;ve signed up to Amazon S3, you need to set it up to work with WordPress. First you need to create what Amazon calls a &#8220;bucket.&#8221; In layman&#8217;s terms, think of it as a folder on your Amazon S3 account. That&#8217;s where S3Fox comes in. </p>
<p>You have two options with S3Fox, you can go to a full view access via Tools in the Firefox menu, or you can click on the S3Fox icon at the bottom of Firefox which presents a smaller, limited version. It doesn&#8217;t matter at this point which one you pick, as long as you get access to your S3 account.</p>
<p>S3Fox requires three things for access: your Account Name, Access Key and Secret Key. All of those are available from S3 via the &#8220;security credentials option.&#8221; Cut and paste. </p>
<p>Once you&#8217;re in, it&#8217;s simply a matter of clicking on the &#8220;create directory&#8221; button which is a blue icon with a gold star on it, and naming your bucket. Note that you should name the bucket what you&#8217;d like your directory to be  We&#8217;ll get to that part in a minute, but if you want to go with images.yoururl.com, name your bucket images.yoururl.com.</p>
<p><strong>Setup Round 2: WP plugin settings</strong></p>
<p>Once you&#8217;ve gotten to this point, you&#8217;re nearly there. You&#8217;ll have your S3 settings handy from setting up S3Fox, and you&#8217;ll need them again.</p>
<p>In WordPress, navigate to &#8220;Amazon S3&#8243; under the settings option. The first two options are easy: access key and secret code. After that you pick your bucket by drop down. In my experience, if you haven&#8217;t got a bucket set up, this just won&#8217;t show, so make sure you&#8217;ve set one up per the above instructions. After that I&#8217;ll go through step by step:</p>
<p>- Host name settings: if you want your images to appear at images.yoururl.com and not images.yoururl.com.s3.amazonsomething.com, click this option. However if you go this way, it requires you to setup a Cname entry on your domain. We&#8217;ll get to that part soon.<br />
- File Uploads: check this if you want all WordPress uploads to go to your S3 account. The plugin gives you the option, and you also get a new button above the add new entry box if you&#8217;d rather pick between your server and S3 on a post by post basis.<br />
- Expires Header:something to do with caching images. I could find no advice saying don&#8217;t check this, so I did. If you want to read more, there&#8217;s a link next to this option so you can find out more.<br />
- File Permissions: you absolutely should check this otherwise your images won&#8217;t be publicly available. Uploads to S3 are defaulted to private&#8230;which is a pain in the neck if you&#8217;re uploading directly to S3 because you have to change file permissions each time. This option negates the need to do this with WordPress uploads.</p>
<p>Hit save, and that&#8217;s all there is to it.</p>
<p><strong>Cname</strong><br />
You have a choice here, and this could be the most challenging point in the process if you want to go down this path. It&#8217;s easy to not go the cname route, although the problem there is that all your image uploads a linked into Amazon for the future, where as if you go cname, you can easily export out of Amazon at a later date.</p>
<p>Details on the cname settings are available <a href="http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?VirtualHosting.html">on Amazon here</a>. Depending on your setup, you may need to set this up with your domain name registrar or host. In my case, it was via MediaTemple&#8217;s control panel. Check with your host on how to set up. </p>
<p>And that&#8217;s all there is to it. </p>
<p>24 hours later and we haven&#8217;t had a hiccup yet. Mind you, if S3 goes down (which is extremely rare, but it has happened in the past) The Inquisitr is going to look mighty weird. But if it saves us money by not having to buy a new server, it&#8217;s a win all round. </p>


<p>Related posts:<ol><li><a href='http://www.inquisitr.com/41869/amazon-cloudfront-cdn-with-a-wordpress-blog/' rel='bookmark' title='Permanent Link: Amazon Cloudfront CDN with a WordPress Blog'>Amazon Cloudfront CDN with a WordPress Blog</a></li><li><a href='http://www.inquisitr.com/863/amazoncom-goes-down-now-up/' rel='bookmark' title='Permanent Link: Amazon.com Goes Down (Now Up)'>Amazon.com Goes Down (Now Up)</a></li><li><a href='http://www.inquisitr.com/3155/setting-up-your-own-blog-is-easier-than-you-think-blogging-101/' rel='bookmark' title='Permanent Link: Setting up your own blog is easier than you think [Blogging 101]'>Setting up your own blog is easier than you think [Blogging 101]</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/www.inquisitr.com/p=39348</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://images.inquisitr.com/wp-content/Amazon-s3-150x150.jpg" />
		<media:content url="http://images.inquisitr.com/wp-content/Amazon-s3.jpg" medium="image">
			<media:title type="html">Amazon s3</media:title>
			<media:thumbnail url="http://images.inquisitr.com/wp-content/Amazon-s3-150x150.jpg" />
		</media:content>
	</item>
		<item>
		<title>Amazon S3 outage causes widespread issues</title>
		<link>http://www.inquisitr.com/1818/amazon-s3-outage-causes-widespread-issues/</link>
		<comments>http://www.inquisitr.com/1818/amazon-s3-outage-causes-widespread-issues/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 22:52:33 +0000</pubDate>
		<dc:creator>Duncan Riley</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[smugmug]]></category>

		<guid isPermaLink="false">http://www.inquisitr.com/?p=1818</guid>
		<description><![CDATA[
Amazon&#8217;s S3 storage solution crashed earlier today, causing widespread issues with a range of web 2.0 applications. The service is popular among startups due to its cheap pricing and usual reliability.
Allen Stern broke the news on Centernetworks, noting that the service went down at around midday US EDT. His latest update indicates (per the screenshot [...]]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://www.inquisitr.com/wp-content/aws.jpg" alt="" title="aws" width="472" height="74" class="alignnone size-full wp-image-1819" /></center></p>
<p>Amazon&#8217;s S3 storage solution crashed earlier today, causing widespread issues with a range of web 2.0 applications. The service is popular among startups due to its cheap pricing and usual reliability.</p>
<p>Allen Stern broke the news <a href="http://www.centernetworks.com/amazon-s3-down-july-2008">on Centernetworks</a>, noting that the service went down at around midday US EDT. His latest update indicates (per the screenshot above) that some 6 hours later the service was slowly coming back up. Affected services include the iPhone Twitter client Twinkle and photo hosting service SmugMug. Other services affected include the AIR Twitter <a href="http://www.loiclemeur.com/english/2008/07/amazon-s3-down.html">client Twhirl</a>, which relies on S3 for avatar hosting.</p>
<p><a href="http://webworkerdaily.com/2008/07/20/amazon-s3-dependence/">WebWorker Daily</a> notes that Amazon offers a 99.99% uptime guarantee on S3, which equates to no more than 45 minutes of downtime a month, with refunds available for longer downtime.</p>
<p>For those affected by the downtime, the Amazon status page can be followed <a href="http://status.aws.amazon.com/">here</a>.  </p>
<p><strong>Update:</strong> outage seems to have take Plurk completely offline as well.</p>
<div class="tradevibes_linkdiv"><a class="tradevibes_show_widget" href="http://www.tradevibes.com/company/profile/amazon">Amazon</a></div>
<p><script language="JavaScript" type="text/javascript" src="http://qbase.tradevibes.com/widget/amazon"></script></p>


<p>Related posts:<ol><li><a href='http://www.inquisitr.com/863/amazoncom-goes-down-now-up/' rel='bookmark' title='Permanent Link: Amazon.com Goes Down (Now Up)'>Amazon.com Goes Down (Now Up)</a></li><li><a href='http://www.inquisitr.com/19292/twitter-users-get-a-dose-of-the-old-days-as-twitter-api-fails/' rel='bookmark' title='Permanent Link: Twitter users get a dose of the old days as Twitter API fails'>Twitter users get a dose of the old days as Twitter API fails</a></li><li><a href='http://www.inquisitr.com/38409/watch-out-amazon-marketplace-amazon-basics-launche/' rel='bookmark' title='Permanent Link: Watch out Amazon Marketplace, Amazon Basics launches'>Watch out Amazon Marketplace, Amazon Basics launches</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/www.inquisitr.com/p=1818</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://www.inquisitr.com/wp-content//var/www/vhosts/inquisitr.com/httpdocs/wp-content/aws-150x74.jpg" />
		<media:content url="http://www.inquisitr.com/wp-content//var/www/vhosts/inquisitr.com/httpdocs/wp-content/aws.jpg" medium="image">
			<media:title type="html">aws</media:title>
			<media:thumbnail url="http://www.inquisitr.com/wp-content//var/www/vhosts/inquisitr.com/httpdocs/wp-content/aws-150x74.jpg" />
		</media:content>
	</item>
	</channel>
</rss>
