<?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>Phil Chen</title>
	<atom:link href="http://www.philchen.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.philchen.com</link>
	<description>Phil Chen</description>
	<lastBuildDate>Fri, 23 Jul 2010 03:36:53 +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></title>
		<link>http://www.philchen.com/2010/07/22/670</link>
		<comments>http://www.philchen.com/2010/07/22/670#comments</comments>
		<pubDate>Fri, 23 Jul 2010 03:36:06 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=670</guid>
		<description><![CDATA[I have been training for America&#8217;s Finest City Half Marathon and running about 15-17 miles a week with some hiking in between. I sure hope I am ready, the last and only other half marathon I ran was the Carlsbad Half Marathon. As usual first goal is to finish, second is to clock in at [...]]]></description>
			<content:encoded><![CDATA[<p>I have been training for <a href="http://www.afchalf.com" target="_blank">America&#8217;s Finest City Half Marathon</a> and running about 15-17 miles a week with some hiking in between. I sure hope I am ready, the last and only other half marathon I ran was the <a href="http://www.carlsbadmarathon.com" target="_blank">Carlsbad Half Marathon</a>. As usual first goal is to finish, second is to clock in at a decent time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2010/07/22/670/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Velocity: The Ultimate Web Performance and Operations Conference</title>
		<link>http://www.philchen.com/2010/07/16/velocity-the-ultimate-web-performance-and-operations-conference</link>
		<comments>http://www.philchen.com/2010/07/16/velocity-the-ultimate-web-performance-and-operations-conference#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:45:14 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Development 101]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Systems 101]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=640</guid>
		<description><![CDATA[&#160;
Last month, I attended O&#8217;Reilly&#8217;s Velocity Web Performance and Operations Conference and, without fail, the information I came away with reinforced existing VMIX initiatives and strategies, and inspired new ones.

Attending the Velocity Conference, I had three goals:

To listen to relevant industry-leading speakers, regarding how to improve performance and operational efficiency, taking this information and disseminating [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;
<p>Last month, I attended <a href="http://en.oreilly.com/velocity2010" target="_blank">O&#8217;Reilly&#8217;s Velocity Web Performance and Operations Conference</a> and, without fail, the information I came away with reinforced existing <a href="http://www.vmix.com" target="_blank">VMIX</a> initiatives and strategies, and inspired new ones.<br />
<span id="more-640"></span><br />
Attending the Velocity Conference, I had three goals:</p>
<ul>
<li>To listen to relevant industry-leading speakers, regarding how to improve performance and operational efficiency, taking this information and disseminating it to my colleagues who couldn&#8217;t attend.</li>
<li>To meet and discuss with peers from companies facing the same challenges and hurdles when it comes to performance and operations. Understanding their approaches and pitfalls while offering my own experiences.</li>
<li>And, finally, being away from interruptions at work, to simply be inspired by the incredibly smart people around me to draft new strategies for increasing scale, efficiency and performance to bring back and implement.</li>
</ul>
<p><h3><a href="http://www.vmix.com/blog/wp-content/uploads/2010/07/velocity.jpg"><img class="alignleft size-medium wp-image-1042" title="O'Reilly's Velocity Web Performance and Operations Conference" src="http://www.vmix.com/blog/wp-content/uploads/2010/07/velocity-300x199.jpg" alt="" width="300" height="199" /></a>It&#8217;s All About the Data</h3>
<p>At Velocity this year, as well as the previous two, I became aware of underlying themes that went beyond specific technologies or tools.</p>
<p>The most important, which in some cases may seem obvious, is to make decisions based on data.</p>
<p>A lot of times, decisions are made based on theory, instinct, wishful thinking and other motivating factors.</p>
<p>Validating these factors with data collected from your applications, infrastructure and clients will allow you to make the most informed decision. The more data points you collect, the higher the odds are that your decisions will result in the kind of outcomes you think they should.</p>
<p>One important method of data collection that is overlooked at times is the <em>human </em>factor. No matter how much our hardware computing evolves, humans still decide which methods or strategies to implement in order to provide a complete solution. And the human brain is still the highest performing computer on the market. Going to a conference and interacting with peers and colleagues on operations and web performance allows us to complete the system.</p>
<h3>Learning and Implementing</h3>
<p>As a result of attending the Velocity Conferences over the past three years, we have been able to implement the following technologies and optimizations, which have greatly impacted our efficiency at VMIX.</p>
<p><strong>Velocity 2008</strong></p>
<p>I met <a href="http://brian.moonspot.net/" target="_blank">Brian Moon</a> and <a href="http://dormando.livejournal.com" target="_blank">Alan Kasindorf (dormando)</a> and, after discussing file-system optimization, proceeded to implement some <a href="http://www.philchen.com/2009/02/09/some-tuning-tips-for-apache-mod_cache-mod_disk_cache" target="_blank">file-system tuning</a> which, in turn, helped increase our Apache Web Servers running mod_disk_cache efficiency by 3 times.</p>
<p><strong>Velocity 2009</strong></p>
<p>After several BOF (Birds of a Feather) sessions, and speaking with various attendees, I was convinced to give <a href="http://www.puppetlabs.com/puppet/introduction/" target="_blank">Puppet</a> (Configuration Management Framework) a try, along with <a href="https://fedorahosted.org/cobbler/" target="_blank">Cobbler</a> for rapid Linux installs. We&#8217;d previously used <a href="http://www.cfengine.org/" target="_blank">CFengine</a> and <a href="http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/ch-kickstart2.html" target="_blank"> Standalone Kickstart</a> and felt they were not necessarily the right tools for our operation. After proof of concept (POC), we deployed Puppet and Cobbler and are now able to build and control systems at a quicker rate, with more management and less complication.</p>
<p><strong>Velocity 2010</strong></p>
<p>I attended a talk by <a href="http://www.ogre.com/" target="_blank">Leif Hedstrom</a> on <a href="http://trafficserver.apache.org/" target="_blank">Apache Traffic Server</a> and realized it was open sourced from Yahoo to the <a href="http://apache.org" target="_blank">Apache Organization</a>. I had known about the Traffic Server back in the Inktomi days (1990&#8217;s), as well as from a company I worked for that licensed the code. However, I hadn&#8217;t realized it was openly available. After hearing that Yahoo uses the Traffic Server for their own CDN network, I decided to give it a shot and plan on using it to possibly replacing our <a href="http://www.squid-cache.org/" target="_blank">Squid</a> servers at VMIX.</p>
<p>Currently, we are running a bit of a bake-off between Squid and Apache Traffic Server, and preliminary results for Traffic Server are so favorable that, by next month, Squid might be calamari.</p>
<p>In quick closing, hopefully O&#8217;Reilly and the Velocity Program Committee keeps up the good work and my list of things learned and implemented grows!</p>
<p style="text-align: left;"><span style="color: #808080;"><em>Phil Chen is Director of Systems Engineering at VMIX.</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2010/07/16/velocity-the-ultimate-web-performance-and-operations-conference/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>16 Million Objects Totaling 61 Terabytes – Yes, We Believe Amazon S3 Can Scale!</title>
		<link>http://www.philchen.com/2010/06/16/16-million-objects-totaling-61-terabytes-%e2%80%93-yes-we-believe-amazon-s3-can-scale</link>
		<comments>http://www.philchen.com/2010/06/16/16-million-objects-totaling-61-terabytes-%e2%80%93-yes-we-believe-amazon-s3-can-scale#comments</comments>
		<pubDate>Wed, 16 Jun 2010 18:18:58 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=616</guid>
		<description><![CDATA[As Director of Systems Engineering for VMIX, it is my job—my department&#8217;s job—to scale our infrastructure to meet our clients&#8217; needs, ensuring a high level of service availability and performance.
And each year that goes by, our online video platform usage grows at a pace that could give anyone an ulcer, especially if you don’t come [...]]]></description>
			<content:encoded><![CDATA[<p>As Director of Systems Engineering for <a href="http://www.vmix.com" target="_blank">VMIX</a>, it is my job—my department&#8217;s job—to scale our infrastructure to meet our clients&#8217; needs, ensuring a high level of service availability and performance.</p>
<p>And each year that goes by, our online video platform usage grows at a pace that could give anyone an ulcer, especially if you don’t come up with a creative solution to scale.<br />
<span id="more-616"></span><br />
One of the solutions VMIX implemented <a href="http://www.vmix.com/blog/2009/09/walking-into-the-cloud-extending-our-mission-critical-datacenter-with-cloud-services/" target="_blank">a little over a year ago</a> was incorporating cloud-based storage for a segment of our infrastructure. After much R&amp;D, we chose to partner with the <a href="http://aws.amazon.com/s3/" target="_blank">Amazon S3</a> service. When we started incorporating S3 to help meet some of our storage needs, we were slightly concerned about the service&#8217;s reliability and performance. So our approach was to design a system that would leverage our classic storage model as a buffer or cache for short-term newer content, and utilize S3 for long-term older content.</p>
<p>One year later, I thought I would share our findings with actual data collected from Amazon S3, as well as from the VMIX platform.</p>
<p>The graph below shows three data points (data stored, data transferred in, and data transferred out) on a month-to-month basis. As you will see, we did not experience any limitations on the amount of data stored and the amount of data transferred in and out.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="620" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashVars" value="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.1.xml" /><param name="bgcolor" value="#D3D3D3" /><param name="quality" value="high" /><param name="src" value="http://www.mygraphs.com/bin/swf/vmix/vmixs3.swf" /><param name="flashvars" value="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.1.xml" /><embed type="application/x-shockwave-flash" width="620" height="500" src="http://www.mygraphs.com/bin/swf/vmix/vmixs3.swf" quality="high" bgcolor="#D3D3D3" flashvars="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.1.xml"></embed></object></p>
<p>The graph below tracks how many individual objects VMIX stored on a month-to-month basis. Given S3’s object-store model, it was clear that having two buckets in S3 was more than enough to handle what we needed.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="620" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashVars" value="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.2.xml" /><param name="bgcolor" value="#D3D3D3" /><param name="quality" value="high" /><param name="src" value="http://www.mygraphs.com/bin/swf/vmix/vmixs3.swf" /><param name="flashvars" value="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.2.xml" /><embed type="application/x-shockwave-flash" width="620" height="500" src="http://www.mygraphs.com/bin/swf/vmix/vmixs3.swf" quality="high" bgcolor="#D3D3D3" flashvars="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.2.xml"></embed></object></p>
<p>The graph below shows the number of transactions on a month-to-month basis. We found that every time we stored, deleted or retrieved an object the performance was very dependable.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="620" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashVars" value="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.3.xml" /><param name="bgcolor" value="#D3D3D3" /><param name="quality" value="high" /><param name="src" value="http://www.mygraphs.com/bin/swf/vmix/vmixs3.swf" /><param name="flashvars" value="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.3.xml" /><embed type="application/x-shockwave-flash" width="620" height="500" src="http://www.mygraphs.com/bin/swf/vmix/vmixs3.swf" quality="high" bgcolor="#D3D3D3" flashvars="dataUrl=http://www.mygraphs.com/data/vmix/vmix_1.3.xml"></embed></object></p>
<p>In conclusion, with the right architecture, Amazon S3 is an excellent option to help you scale storage. Though performance isn’t perfect (in the past year we&#8217;ve seen three to four S3 outages lasting an average of 15 minutes each) we feel you can architect around that as we have.</p>
<p>During this initial period VMIX used Amazon for a segment of its storage needs only—we now feel confident increasing our use of S3 moving forward.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2010/06/16/16-million-objects-totaling-61-terabytes-%e2%80%93-yes-we-believe-amazon-s3-can-scale/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon EC2 64-bit CentOS 5.3 Base Public AMI &#8217;s</title>
		<link>http://www.philchen.com/2010/05/31/amazon-ec2-64bit-centos-5-3-base-public-ami-s</link>
		<comments>http://www.philchen.com/2010/05/31/amazon-ec2-64bit-centos-5-3-base-public-ami-s#comments</comments>
		<pubDate>Tue, 01 Jun 2010 01:01:45 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=597</guid>
		<description><![CDATA[I have had a lot of people request me to make a public base CentOS 5.3 64-bit EC2 AMI in all the AWS Regions. I can understand some of you would like to fire up a base instance and then make modifications and snapshot them into your own custom AMI&#8217;s. So I finally found some [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a lot of people request me to make a public base CentOS 5.3 64-bit EC2 AMI in all the AWS Regions. I can understand some of you would like to fire up a base instance and then make modifications and <a href="http://www.philchen.com/2009/05/19/how-to-save-a-snapshot-of-your-amazon-ec2-instance">snapshot</a> them into your own custom AMI&#8217;s. So I finally found some time to build some and here they are! You can find them from the AWS EC2 Management Console under Public AMI&#8217;s or via command line methods.<br />
<span id="more-597"></span><br />
<strong>United States:</strong></p>
<p><strong>Virginia</strong> – ami-b945acd0<br />
<strong>California</strong> – ami-498cdd0c</p>
<p><strong>United Kingdom:</strong></p>
<p><strong>Ireland</strong> – ami-993d17ed</p>
<p><strong>Asia Pacific:</strong></p>
<p><strong>Singapore</strong> – ami-45e29d17</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2010/05/31/amazon-ec2-64bit-centos-5-3-base-public-ami-s/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://www.philchen.com/2010/03/07/576</link>
		<comments>http://www.philchen.com/2010/03/07/576#comments</comments>
		<pubDate>Sun, 07 Mar 2010 20:25:23 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.philchen.com/2010/03/07/576</guid>
		<description><![CDATA[It&#8217;s that time of year when I raise money for the National MS Society via Walk MS! You can help fund research for a cure to Multiple Sclerosis by donating at my fund raising page http://main.nationalmssociety.org/goto/philchen So if you have some spare moola for a good cause every little bit helps!
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s that time of year when I raise money for the National MS Society via Walk MS! You can help fund research for a cure to Multiple Sclerosis by donating at my fund raising page http://main.nationalmssociety.org/goto/philchen So if you have some spare moola for a good cause every little bit helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2010/03/07/576/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Mod_Deflate and Flash SWF Files Don&#8217;t Like Each Other</title>
		<link>http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other</link>
		<comments>http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other#comments</comments>
		<pubDate>Wed, 05 Aug 2009 04:49:42 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Development 101]]></category>
		<category><![CDATA[Systems 101]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=550</guid>
		<description><![CDATA[Recently I was working on a Flex project and upon completion and successful QA, I deployed it on a clients server for use. After embedding the SWF file and adding the data.xml that populated the flash application, I could not load the application in Firefox or IE. Several refreshes would load the application occasionally, however [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on a Flex project and upon completion and successful QA, I deployed it on a clients server for use. After embedding the SWF file and adding the data.xml that populated the flash application, I could not load the application in Firefox or IE. Several refreshes would load the application occasionally, however most of the time I just had a grey box. <span id="more-550"></span></p>
<p>So while troubleshooting using Firebug, I realized that the clients server I had deployed on was using Apache 2.2.11 with Mod_Deflate enabled, a method commonly used to compress up to 70% of data transfered over the wire to speed page loads. I then had a flash back on reading an article about issues with compression of SWF&#8217;s, and upon further investigation of the clients Apache configuration file I saw SWF was not excluded from compression via Mod_Deflate.</p>
<p>Mod_Deflate was compressing SWF files sending them with chunked transfer encoding to the browser. It appears the last part of the chunk was being missed by the browser. By refreshing the browser cache it sometimes filled in the missing chunk, and displayed the application.</p>
<p>So I added SWF to the list of files not to compress via Mod_Deflate and the application worked perfectly everytime.</p>
<p>Below is the section I added the SWF exclusion:</p>
<p>BEFORE:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Location <span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #666666; font-style: italic;"># Insert filter</span>
SetOutputFilter DEFLATE
&nbsp;
<span style="color: #666666; font-style: italic;"># Netscape 4.x has some problems...</span>
BrowserMatch ^Mozilla<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span> gzip-only-text<span style="color: #000000; font-weight: bold;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># Netscape 4.06-4.08 have some more problems</span>
BrowserMatch ^Mozilla<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span>\.0<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">678</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> no-gzip
&nbsp;
<span style="color: #666666; font-style: italic;"># MSIE masquerades as Netscape, but it is fine</span>
BrowserMatch \bMSIE <span style="color: #000000; font-weight: bold;">!</span>no-gzip <span style="color: #000000; font-weight: bold;">!</span>gzip-only-text<span style="color: #000000; font-weight: bold;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># Don't compress images and other uncompressible content</span>
SetEnvIfNoCase Request_URI \
 \.<span style="color: #7a0874; font-weight: bold;">&#40;</span>?:gif<span style="color: #000000; font-weight: bold;">|</span>jpe?g<span style="color: #000000; font-weight: bold;">|</span>png<span style="color: #000000; font-weight: bold;">|</span>rar<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">zip</span><span style="color: #000000; font-weight: bold;">|</span>exe<span style="color: #000000; font-weight: bold;">|</span>flv<span style="color: #000000; font-weight: bold;">|</span>mov<span style="color: #000000; font-weight: bold;">|</span>wma<span style="color: #000000; font-weight: bold;">|</span>mp3<span style="color: #000000; font-weight: bold;">|</span>avi<span style="color: #000000; font-weight: bold;">|</span>mp?g<span style="color: #7a0874; font-weight: bold;">&#41;</span>$ no-gzip dont-vary
&nbsp;
<span style="color: #666666; font-style: italic;"># Make sure proxies don't deliver the wrong content</span>
Header append Vary User-Agent <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">env</span></span>=<span style="color: #000000; font-weight: bold;">!</span>dont-vary
<span style="color: #000000; font-weight: bold;">&lt;/</span>Location<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>AFTER:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>Location <span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #666666; font-style: italic;"># Insert filter</span>
SetOutputFilter DEFLATE
&nbsp;
<span style="color: #666666; font-style: italic;"># Netscape 4.x has some problems...</span>
BrowserMatch ^Mozilla<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span> gzip-only-text<span style="color: #000000; font-weight: bold;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># Netscape 4.06-4.08 have some more problems</span>
BrowserMatch ^Mozilla<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span>\.0<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">678</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> no-gzip
&nbsp;
<span style="color: #666666; font-style: italic;"># MSIE masquerades as Netscape, but it is fine</span>
BrowserMatch \bMSIE <span style="color: #000000; font-weight: bold;">!</span>no-gzip <span style="color: #000000; font-weight: bold;">!</span>gzip-only-text<span style="color: #000000; font-weight: bold;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># Don't compress images and other uncompressible content</span>
SetEnvIfNoCase Request_URI \
 \.<span style="color: #7a0874; font-weight: bold;">&#40;</span>?:gif<span style="color: #000000; font-weight: bold;">|</span>jpe?g<span style="color: #000000; font-weight: bold;">|</span>png<span style="color: #000000; font-weight: bold;">|</span>rar<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">zip</span><span style="color: #000000; font-weight: bold;">|</span>exe<span style="color: #000000; font-weight: bold;">|</span>flv<span style="color: #000000; font-weight: bold;">|</span>mov<span style="color: #000000; font-weight: bold;">|</span>wma<span style="color: #000000; font-weight: bold;">|</span>mp3<span style="color: #000000; font-weight: bold;">|</span>avi<span style="color: #000000; font-weight: bold;">|</span>swf<span style="color: #000000; font-weight: bold;">|</span>mp?g<span style="color: #7a0874; font-weight: bold;">&#41;</span>$ no-gzip dont-vary
&nbsp;
<span style="color: #666666; font-style: italic;"># Make sure proxies don't deliver the wrong content</span>
Header append Vary User-Agent <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">env</span></span>=<span style="color: #000000; font-weight: bold;">!</span>dont-vary
<span style="color: #000000; font-weight: bold;">&lt;/</span>Location<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mob Wars Trailer Contest</title>
		<link>http://www.philchen.com/2009/06/10/mob-wars-trailer-contest</link>
		<comments>http://www.philchen.com/2009/06/10/mob-wars-trailer-contest#comments</comments>
		<pubDate>Thu, 11 Jun 2009 04:08:42 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Fun 101]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=536</guid>
		<description><![CDATA[Recently Michael Foster a friend of mine, decided to recruit a bunch of us to enter in the Mob Wars trailer contest. So after several weekends of filming in various residential streets, city streets, a warehouse, a strip club, with various handguns, shotguns, machine guns, and muscle car and motorcycle stunt work a master piece [...]]]></description>
			<content:encoded><![CDATA[<p>Recently Michael Foster a friend of mine, decided to recruit a bunch of us to enter in the <a href="http://apps.facebook.com/mobwars/about/video_contest.php">Mob Wars trailer contest</a>. So after several weekends of filming in various residential streets, city streets, a warehouse, a strip club, with various handguns, shotguns, machine guns, and muscle car and motorcycle stunt work a master piece was born. I have a fight scene and got to stunt drive my mustang. Please rate the video on youtube and add a comment to help us win!<br />
<span id="more-536"></span><br />
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/23cnL5AzJUg&#038;hl=en&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/23cnL5AzJUg&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2009/06/10/mob-wars-trailer-contest/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>What is The Throughput For an Amazon EC2 Instance?</title>
		<link>http://www.philchen.com/2009/06/05/what-is-the-bandwidth-throughput-for-ec2</link>
		<comments>http://www.philchen.com/2009/06/05/what-is-the-bandwidth-throughput-for-ec2#comments</comments>
		<pubDate>Sat, 06 Jun 2009 00:02:01 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=499</guid>
		<description><![CDATA[Since bandwidth throughput when using Amazon Web Services Elastic Compute Cloud (EC2) is very important when routing traffic and services I decided to take some measurements and outline them here for your reference. I ran tests against both 32 Bit and 64 Bit instances, and found some interesting results. These tests were run several times [...]]]></description>
			<content:encoded><![CDATA[<p>Since bandwidth throughput when using <a href="http://aws.amazon.com/ec2/">Amazon Web Services Elastic Compute Cloud (EC2)</a> is very important when routing traffic and services I decided to take some measurements and outline them here for your reference. I ran tests against both 32 Bit and 64 Bit instances, and found some interesting results. These tests were run several times over different days, and the figures are the averages I saw.<br />
<span id="more-499"></span></p>
<blockquote><p><em>*Remember Results May Vary</em></p></blockquote>
<p><strong>Methods of Transport:</strong><br />
SCP &#038; CURL</p>
<p><strong>Data File Size:</strong><br />
17 Megabytes</p>
<p><strong>Data Center Bandwidth:</strong><br />
Gigabit (RoutesScience)</p>
<p><strong> </p>
<blockquote><p>SCP Data:</p></blockquote>
<p></strong></p>
<blockquote><p><strong>32 Bit CentOS</strong></p></blockquote>
<li>Data Center &#8211;> EC2 32 = 10 megabit/s &#8211; 12 megabit/s</li>
<li>EC2 32  &#8211;> Data Center = 7.2 megabit/s</li>
<li>EC2 32 &#8211;> EC2 32 = 80 megabit/s &#8211; 96 megabit/s</li>
<blockquote><p><strong>64 Bit CentOS</strong></p></blockquote>
<li>Data Center &#8211;> EC2 = 12 megabit/s &#8211; 16 megabit/s</li>
<li>EC2 &#8211;> Data Center = 2.24 megabit/s &#8211; 3 megabit/s</li>
<li>EC2 &#8211;> EC2 = 240 megabit/s</li>
<p><strong> </p>
<blockquote><p>CURL (GET NON SSL) Data:</p></blockquote>
<p> </strong></p>
<blockquote><p><strong>32 Bit CentOS</strong></p></blockquote>
<li>Data Center (Server Running Apache) &#8211;GET&#8211;> EC2 = 3.7 megabit/s</li>
<li>EC2 (Running Apache) &#8211;GET&#8211;> Data Center = 5.7 megabit/s</li>
<li>EC2 (Running Apache) &#8211;GET&#8211;> EC2 32 = 80 megabit/s &#8211; 288 megabit/s</li>
<blockquote><p><strong>64 Bit CentOS</strong></p></blockquote>
<li>Data Center (Server Running Apache) &#8211;GET&#8211;> EC2 = 9.6 megabit/s</li>
<li>EC2 (Running Apache) &#8211;GET&#8211;> Data Center = 7.2 megabit/s</li>
<li>EC2 (Running Apache) &#8211;GET&#8211;> EC2 = 767 megabit/s</li>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2009/06/05/what-is-the-bandwidth-throughput-for-ec2/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Save a Snapshot of your Amazon EC2 Instance</title>
		<link>http://www.philchen.com/2009/05/19/how-to-save-a-snapshot-of-your-amazon-ec2-instance</link>
		<comments>http://www.philchen.com/2009/05/19/how-to-save-a-snapshot-of-your-amazon-ec2-instance#comments</comments>
		<pubDate>Tue, 19 May 2009 23:53:29 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=405</guid>
		<description><![CDATA[This how to article will go over saving a snapshot of your Amazon Elastic Compute Cloud (EC2) Machine Image (AMI). This is very useful for taking an existing AMI and modifying it to customize your needs into a new separate AMI. 
For my intents and purposes I have a base CentOS 5.3 AMI with only [...]]]></description>
			<content:encoded><![CDATA[<p>This how to article will go over saving a snapshot of your Amazon Elastic Compute Cloud (EC2) Machine Image (AMI). This is very useful for taking an existing AMI and modifying it to customize your needs into a new separate AMI. </p>
<p>For my intents and purposes I have a base CentOS 5.3 AMI with only the bare essentials. I then use this snapshot method to create different class AMI&#8217;s for different server functions ie. (webserver, memcached server, etc)<br />
<span id="more-405"></span><br />
First thing is first you are going to need to have an existing AMI created, you can read how to do so in my other blog article <a href="http://www.philchen.com/2009/02/14/how-to-create-an-amazon-elastic-compute-cloud-ec2-machine-image-ami">How to create an Amazon Elastic Compute Cloud EC2 Machine Image (AMI)</a>. Once you have this AMI created and you launch the instance the fun begins to modify it and then take a snapshot for a new AMI based on the original AMI.</p>
<p>So once you launch your instance off your base AMI, you simply connect to your Amazon EC2 instance and install all the software you need to serve your purpose as you would any other server. After you have completed all the software installs and customizations, you then can begin the snapshot process.</p>
<p>The first step is to create a directory and download the Amazon EC2 Tools</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2TOOLS
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2TOOLS
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.philchen.com<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>05<span style="color: #000000; font-weight: bold;">/</span>ec2-ami-tools.zip
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">unzip</span> ec2-ami-tools.zip
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> ec2-ami-tools-<span style="color: #000000;">1.3</span>-<span style="color: #000000;">31780</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">*</span> ..<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">rmdir</span> ec2-ami-tools-<span style="color: #000000;">1.3</span>-<span style="color: #000000;">31780</span><span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Now scp over your AWS private and public certificate</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2TOOLS<span style="color: #000000; font-weight: bold;">/</span>pk-yourprivatekey.pem
<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2TOOLS<span style="color: #000000; font-weight: bold;">/</span>cert-yourcertificate.pem</pre></div></div>

<p>You want to setup your .bashrc to know where your tools are</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">vi</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EC2_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2TOOLS
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">source</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></div></div>

<p>Now you will want to download the correct kernel modules:</p>
<p>If your creating a snapshot of a 32bit AMI and don&#8217;t have the proper xen kernel modules do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>MOD
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>MOD
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.philchen.com<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>05<span style="color: #000000; font-weight: bold;">/</span>kernel-modules2616-xenu.tgz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #660033;">-c</span> kernel-modules2616-xenu.tgz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> -
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>MOD<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mv</span> 2.6.16-xenU <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ depmod <span style="color: #660033;">-ae</span> 2.6.16-xenU</pre></div></div>

<p>If your creating a snapshot of a 64bit AMI and don&#8217;t have the proper xen kernel modules do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>MOD
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>MOD
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.philchen.com<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>05<span style="color: #000000; font-weight: bold;">/</span>kernel-modules-<span style="color: #000000;">261633</span>-xenu.tgz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #660033;">-c</span> kernel-modules-<span style="color: #000000;">261633</span>-xenu.tgz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> -
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>MOD<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mv</span> 2.6.16.33-xenU <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ depmod <span style="color: #660033;">-ae</span> 2.6.16.33-xenU</pre></div></div>

<p>Now you will want to create a location to store the image files</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2IMAGE</pre></div></div>

<p>At this step you are ready to create the EC2 image files and upload them to S3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2TOOLS
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ bin<span style="color: #000000; font-weight: bold;">/</span>ec2-bundle-vol <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2IMAGE <span style="color: #660033;">--privatekey</span> pk-yourprivatekey.pem <span style="color: #660033;">--cert</span> cert-yourcertificate.pem <span style="color: #660033;">-u</span> amazonaccountnumber <span style="color: #660033;">-r</span> i386 or x86_64 <span style="color: #660033;">-p</span> imagename
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ec2instance<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ bin<span style="color: #000000; font-weight: bold;">/</span>ec2-upload-bundle <span style="color: #660033;">-b</span> yours3bucketname <span style="color: #660033;">-m</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>EC2IMAGE<span style="color: #000000; font-weight: bold;">/</span>whatever.manifest.xml <span style="color: #660033;">-a</span> accesskeyid <span style="color: #660033;">-s</span> secretaccesskey</pre></div></div>

<p>Now on your local machine that you start instances from register the new AWS AMI</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>phil<span style="color: #000000; font-weight: bold;">@</span>client<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>phil<span style="color: #000000; font-weight: bold;">/</span>EC2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ec2-register yourbucketname<span style="color: #000000; font-weight: bold;">/</span>thenameofthenewami.manifest.xml</pre></div></div>

<p>At this point you are done, and ready to fire up your new AMI instance whenever you like with your changes. Note the below directories have been excluded during the bundle process so your certs and secret info will be excluded, but also note anything you installed in these directories will not be kept though as well.</p>
<p>Excluding:<br />
	 /sys<br />
	 /proc<br />
	 /dev/pts<br />
	 /proc/sys/fs/binfmt_misc<br />
	 /dev<br />
	 /media<br />
	 /mnt<br />
	 /proc<br />
	 /sys<br />
	 /mnt</p>
<p>Happy snapshotting your AMI <img src='http://www.philchen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2009/05/19/how-to-save-a-snapshot-of-your-amazon-ec2-instance/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://www.philchen.com/2009/05/17/489</link>
		<comments>http://www.philchen.com/2009/05/17/489#comments</comments>
		<pubDate>Mon, 18 May 2009 02:35:00 +0000</pubDate>
		<dc:creator>Phil Chen</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.philchen.com/?p=489</guid>
		<description><![CDATA[I have been doing a lot of work with Amazon Web Services Cloud Computing for VMIX Media Inc. so much recently we have started a relationship with Amazon. So far they have been very helpful and working with Amazon Web Services has been great! You can read about our relationship in the Amazon Solutions Catalog: [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing a lot of work with Amazon Web Services Cloud Computing for <a href="http://www.vmix.com">VMIX Media Inc.</a> so much recently we have started a relationship with Amazon. So far they have been very helpful and working with Amazon Web Services has been great! You can read about our relationship in the Amazon Solutions Catalog: <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2457">VMIX Delivers SaaS Online Video and Digital Media Solution with AWS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philchen.com/2009/05/17/489/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
