{"id":296,"date":"2009-01-16T09:22:28","date_gmt":"2009-01-16T14:22:28","guid":{"rendered":"http:\/\/www.dannorris.com\/?p=296"},"modified":"2019-04-01T13:57:58","modified_gmt":"2019-04-01T13:57:58","slug":"i-bought-my-own-server-for-102-usd","status":"publish","type":"post","link":"https:\/\/www.dannorris.com\/blog\/2009\/01\/16\/i-bought-my-own-server-for-102-usd\/","title":{"rendered":"I bought my own server for $1.02 (USD!)"},"content":{"rendered":"<p>\t\t\t\tI&#8217;ve got a (always-growing) list of product, features or configurations that I&#8217;d like to experiment with, but sometimes they aren&#8217;t practical to test on my local virtual machines. So, I planned to roll a new virtual machine on the development ESX server that we had at my office. All was going along fine with the Linux installation (OEL5U2) screens until I got to the end where it starts actually installing. For whatever reason, our little server was sick (likely a storage problem) and it hung for hours.<\/p>\n<p>Rather than debug the storage issue, I wanted to get on with my testing. I consulted my usual list of experts, and my friend <a href=\"http:\/\/matttopper.com\/\">Matt<\/a> suggested that I spin up a machine in the <a href=\"http:\/\/aws.amazon.com\/ec2\/\">Amazon EC2<\/a> cloud. I checked out <a href=\"http:\/\/aws.amazon.com\/ec2\/#pricing\">the costs<\/a> and it seemed fairly reasonable. VERY reasonable, actually. Since it was based on time (cost per hour the machine is running), I waited for a day or two until I could dedicate enough time to it and complete the testing in one sitting.<!--more--><\/p>\n<p>Getting started was a little daunting as the only way to perform administration tasks like starting a machine or altering the machine&#8217;s firewall was via web service API calls. I used <a href=\"http:\/\/developer.amazonwebservices.com\/connect\/entry.jspa?externalID=609\">ElasitcFox<\/a> (a Firefox plugin developed by Amazon) to do this. In the last few weeks, Amazon has introduced a <a href=\"https:\/\/console.aws.amazon.com\/\">web-based console<\/a> to manage AWS EC2 instances which will make things much easier I think (I haven&#8217;t tried it yet).<\/p>\n<p>Once I got all the security settings configured and ElasticFox working, I found the <a href=\"http:\/\/aws.amazon.com\/solutions\/featured-partners\/oracle\/\">Oracle<\/a>-provided <a href=\"http:\/\/developer.amazonwebservices.com\/connect\/kbcategory.jspa?categoryID=205\">Amazon Machine Images (AMIs)<\/a>, picked an appropriate one, and started it. These AMIs are a pre-packaged Oracle Enterprise Linux installation configured for Oracle Database and they also include an Oracle Database 11g installation. The startup of the AMI includes a database creation script that will prompt for some basic information and then fire up DBCA in silent mode to create a database for you as well.<\/p>\n<p>While my first attempt took me a little longer, I&#8217;m sure that all my subsequent startups will have a server with a database up and ready within 20 minutes or less. To build a VM on my own VM server with a similar configuration would likely take more than an hour. When you&#8217;re a consultant paid by the hour, those extra 40 minutes matter when you multiply it enough times!<\/p>\n<p>The best part? The cost. My cost from Amazon&#8217;s AWS usage was $1.02 (USD). I used the server for about 8 hours or so, completed my testing, and shut it down. I can tell you that $1.02 is a lot less than a consultant&#8217;s rate for 40 minutes! So, financially (assuming you use the OTN trial\/development license for the Oracle software) it is a simple decision. While it&#8217;s good to do an installation periodically to stay fresh on installer changes and the like, it is usually just a boring means to an end. With the pre-packaged AMIs, it&#8217;s a lot easier to get to work!<\/p>\n<p>The downside is that unless you utilize <a href=\"http:\/\/aws.amazon.com\/ebs\/\">Amazon&#8217;s Elastic Block Store (EBS)<\/a>, once you shutdown your machine, all the contents of that machine (the storage) is gone. Luckily, it only costs $0.10 per hour to keep a machine running, so you can also deal with this issue by just letting your server run. At $0.10 per hour, it would cost a little less than $20 per week to leave the server running. Not a bad deal at all.<\/p>\n<p>Another key to consider here is that when you use Oracle&#8217;s AMI instead of installing the DB yourself, you don&#8217;t have to download the RDBMS installation media images. When part of the usage cost is based on the network bandwidth you consume, this is a big benefit since the installation media is one or two gigabytes, not to mention the additional time required to wait for the download.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got a (always-growing) list of product, features or configurations that I&#8217;d like to experiment with, but sometimes they aren&#8217;t practical to test on my local virtual machines. So, I planned to roll a new virtual machine on the development ESX server that we had at my office. All was going along fine with the &hellip; <a href=\"https:\/\/www.dannorris.com\/blog\/2009\/01\/16\/i-bought-my-own-server-for-102-usd\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;I bought my own server for $1.02 (USD!)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,30,7,15,35,22],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-cloud","category-database","category-general","category-oracle","category-oracle-db-11g","category-technical"],"_links":{"self":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":1,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts\/296\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}