This Web Site is Now Hosted on Amazon EC2 & S3

This web site, www.rajiv.com is now hosted on Amazon.com’s Elastic Compute Cloud (EC2) and Simple Storage Service (S3) services. They are part of Amazon Web Services offerings. If you are a technologist, I recommend EC2 and S3. To learn more about them, you can follow the links in this article.

Benefits of hosting a Web site on EC2 & S3

  • The hosting management is self-service. Anytime you want, you can provision additional servers yourself and immediately. Unlike with most traditional hosting companies, there is not need to contact their staff and have to wait for them to set up your server. On EC2, once you have signed up for an account and set up one server, you can provision (or decommission) additional servers within minutes. Even the initial setup is self-service.
  • EC2 enables you to increase or decrease capacity within minutes. You can commission one or hundreds of server instances simultaneously. Because this is all controlled with web service APIs, your application can automatically scale itself up and down depending on its needs. Billing is metered by an hour as the unit. This flexibility of EC2 can benefits many use cases:
    • If your web sites get seasonal traffic (e.g. a fashion site during shows) or can temporarily get much higher traffic for a period of time (e.g. a news site), EC2’s business model of pay for what you use by the hour, is cost-effective and convenient.
    • If yours is the R&D or Skunkworks group at a large or medium size organization or a startup company with limited financial resources, renting servers from EC2 can have many benefits. You don’t have to make a capital investment to get a server farm up and running, nor make long-term financial commitments to rent infrastructure. You can even turn off servers when not in use, greatly saving costs.
  • It allows me to use the modern Ubuntu1 GNU/Linux operating system, Server Edition. Among Ubuntu’s many benefits are its user friendliness and ease of use. Software installations and upgrades are a breeze. That means less time is required to maintain the system while retaining the flexibility and power being a systems administrator gives.
  • EC2 has lower total cost ownership for me than most hosting providers’ virtual hosting or dedicated server plans. Shared (non virtual server) hosting is still cheaper, but no longer meets my sites’ requirements.2

Potential drawbacks/caution with EC2 & S3

  • While S3 is persistent storage, EC2 virtual server instances’ storage does not persist across server shutdowns. So if your web site is running a database and storing files on an EC2 instance, you should implement scheduled, automated scripts that regularly back up your database and your files to S3 or other storage.
    • Consistent with what I read in some comments online, my EC2 virtual server instance did not lose its file-system state or settings when I rebooted it. So rebooting seems to be safe.3
    • This potential drawback is arguably a good thing in some ways. It compels you to implement a good backup and recovery system.
    • This also means that after installing all the software on your running Amazon Machine Image (AMI), you should save it by creating a new AMI image of it as explained in the Creating an Image section of the EC2 Getting Started Guide.
      • This is an issue since you may want to do this every time after you update your software, especially with security patches. Until Amazon implements persistent storage for EC2 instances, you could do this monthly. You can script this to be partly or fully automated. Since Amazon’s EC2 instances are quite reliable, this is not a major concern.
  • An EC2 instance’s IP address and public DNS name persists only while that instance is running. This can be worked around as described under the tech specs section below.

Some articles about Amazon’s hosting infrastructure services:

Tech specs of my site:

  1. www.ubuntu.com []
  2. I plan to split rajiv.com into separate sites, The India Comedy site will move to comedy.rajiv.com and the SPV Alumni site will move to spv.rajiv.com. The latter two are community sites and will benefit from a community CMS like Drupal. []
  3. However, please be aware of a known issue that on some occasions caused instance termination on reboots. []
  4. I created my AMI virtual machine by building on top of a public Ubuntu AMI by Eric Hammond. []

Posted

in

by

Comments

46 responses to “This Web Site is Now Hosted on Amazon EC2 & S3”

  1. Well, now I wish I weren’t locked into Dreamhost for another 2 years. This is the first post I’ve seen that made EC2/S3 look enticing from an individual’s point-of-view.

  2. Amazon S3 had an outage in the morning of Friday, February 15th. You can read my opinion on the Amazon S3 outage and suggestions for dealing with outages.

  3. duanestorey

    It’s a neat technical achievement, but I have to ask why you would do it with a personal site? You can get shared hosting for < $20 / month. So why would you pay a minimum of around $70?

  4. Duane,

    Good question. I use my personal Web site as an R&D and learning environment. It enables me to experiment on a site that is real and has importance to me. Over the years, I’ve used a number of mainstream technologies including HTML/CGI, MS ASP, .NET, Java and PHP/WordPress to power this site. EC2 enables me to experiment with server virtualization and dynamic “elastic” hosting environments, an area of my interest.

    For someone looking to simply host a personal Web site only, I agree with you and recommend lower-cost alternatives.

    With EC2 and S3, Amazon has brought some of the power of a distributed edge computing platforms like Akamai’s Edge Computing and NetStorage to the mainstream, including startup ventures (whether independent or within large organizations), small businesses and organizations with budget constraints. It will be exciting to see if Akamai responds by offering their edge computing platform to the masses. I hope they do, because I’ve been impressed by Akamai’s products for years. Akamai has enabled many major media companies to handle traffic spikes without having to build out multiple geographically distributed data centers of their own. I hope Akamai views EC2 and S3 as competitors in distributed elastic computing. That will be good for Amazon AWS, for Akamai and for businesses that benefit from such products.

  5. nileshzemse1

    Very nice article…with this i have made a ec2 server.
    i have a server like – http://ec2-75-101-231-169.compute-1.amazonaws.com/
    then how can i upload php scripts which would contain mysql queries, and also on this server php and mysql is not installed… so how can i go for hosting a php, mysql (LAMP) site on amazon ec2?

  6. wiadmin

    This is a very helpful post Rajiv, thank you so much. I am just getting started with using Amazon EC2 and S3 services, so forgive my naiiv questions.

    1. Are you hosting wordpress on EC2?
    2. The site seems to be a little slow at times, could you give me an idea on how many servers/instances are you running it on?

    Thanks

  7. @wiadmin:

    In reply to your questions:

    1. Yes, I am hosting WordPress on EC2.

    2. I am running it on one small server instance. Thanks you for the feedback. I’ll implement a monitor to measure site performance and work on improving it.

  8. @nileshzemse1:

    Thank you.

    Good question. Once I had the instance up and running with Ubuntu server, I used the Ubuntu aptitude/apt-get tools to install software like Apache Web server, PHP, MySQL database server and others mentioned in the original post.

    I recently upgraded Ubuntu server to the 8.04 version and updated all the installed packages.

    Backup strategy:

    Every time I make major system changes, I save the entire system image using the EC2 AMI Tools to Amazon S3, register the new image, deregister the previous one and then restart the site with the new image.

    When I make changes to the Web site folders, I sync it with my local computers. I use MacFUSE and SSHFS to mount the remote disk on my local computer.

    I use a WordPress plugin called “WordPress Database Backup” that automatically backs up my database hourly and emails it to a mailbox that archives it.

    I may post links to instructions on how to do all that in the future. In the meantime, you can find this information via Web searches (Google) as I did.

  9. velaninfo

    Hi rajiv,
    Im Ari, I need to run a website on my Windows2003 AMI,
    I have already started the instance and its running fine. I have my php website stuff. **I need to upload them and make the website available,- I need some more guidance in doing it.Please help me out!

    Thanks,
    Regards
    Ari

  10. Ari,

    Here are some links to information on installing PHP on Windows 2003 server:
    http://us.php.net/install.windows
    http://www.visualwin.com/PHP/
    http://www.simongibson.com/intranet/php52003/
    http://www.google.com/search?q=php+on+windows+2003

    Those should help you get your PHP based Web site up and running on your Windows Amazon EC2 AMI.

  11. My colleague Paul Fisher was quoted in an InformationWeek article about Amazon’s Cloud Computing. Excerpts:

    Among those testing EBS are Wired.com/CondeNet, which uses EC2 to host embeddable widgets and Wired product reviews.

    “EBS is the missing link — the last piece in the cloud computing puzzle — that enables start-ups and large corporations alike to conjure the resources they need to build any application possible,” Paul Fisher, manager of technology for Wired.com/CondeNet, said in a statement. “Persistence is key to most applications, and EBS provides more flexibility in this area than anything previously available.”
    Full article…

  12. What's the monthly cost of hosting wordpress on AWS EC2 because I want to host buddypress CMS (wordpress mu network plugin)?
    Can you provide step by step how you configured your instance or host?

  13. […] in an offsite location. For off site storage, I keep copies of my data at online locations like Amazon S3, Smugmug, Google Docs, IMAP mail servers and Apple’s Mobile Me service. Since the volume of […]

  14. […] One of the differences between Amazon EC2 server instances and normal servers is that the server’s local disk storage state (i.e. changes to data) on EC2 instances does not persist over instance shutdowns and powering on. This was mentioned in my earlier post about hosting my Web site on Amazon EC2 and S3, […]

  15. vish

    Does your EC2 instance need to be running all the time your site is up?? If so than is S3 just for backup purpose??
    How much it costs you on monthly basis and amount of traffic you get??

  16. binu

    How can you instal S/ws on AMazon EC2

  17. Amrit

    This is a question about Amazon EC2.
    What is the difference in running an application or software on EC2 rather than on a local machine.
    Is there any difference in the performance when we run the same application on our machine or Amazon EC2
    Please guide me…!!

  18. It's really an impressive thing to engage with, but I want my personal site and for this I have to pay the $20 per month.

  19. Dewi

    I want to use EC2 from AWS. Thank you for info.

  20. Like most PHP4 CMS applications, they were built by a developer or a group of developers, and generally, were built without the use of any application patterns. This basically meant that you had to get inside the head of the original developer to understand how the application worked. This made adopting any specific CMS just as expensive of a task as building a CMS from scratch that you could use over and over

  21. Each email was crafted based on that email list which was loaded into mysql by a php script. That php script then created and registered each individual link into the database so that reporting could be done later. PHP mail() was a workhorse. It got the job done, and we got loads of great information about email campaigns and tracking. Oh, and this what back when the likes of Doubleclick didn’t completely own the email campaign market.

  22. Ajay kumar

    How to host website on marklogic server, i have a work to give status of success & fail.

    The target MarkLogic-server is clean and you are the first to use it

    The priciple user of your application is a human administrator whom you need to offer ..
    the administration of the clients
    reports for "success and fail"
    In the following "success and fail" will be clarified.

    For all interaction we prefer basic authentication.

  23. Hi Rajiv, thank s for this useful information.. would it be possible for you to share approx how much do you end up paying for a micro instance and about 10GB storage annually. I see you have mentioned that it is costlier than VPS. ..

  24. Today’s announcement from AWS team is relevant to this post.

    http://www.allthingsdistributed.com/2011/02/website_amazon_s3.html

  25. Rajiv, It would be very helpful if you can mention your website resource use (bandwidth, space) and cost incurred from EC2.

  26. Also, do you have any recommendations on what training material can help me setup Ecommerce Shop on EC2?

  27. I wrote a step by step article a few months ago that may help others get to speed with EC2. If you don’t mind the self promoting link it might be useful to people who read this article!

    http://www.paul-norman.co.uk/2011/02/hosting-a-website-on-amazon-ec2/

  28. Thanks! I’m just setting up my server on Amazon S3… so this has helped.

  29. How much does it cost anyway?

    1. Since Amazon’s pricing for AWS has changed (gotten lower) many times since I signed up, here is Amazon’s current pricing: http://aws.amazon.com/ec2/pricing/

  30. Sriram Mohan

    Hi, I need help in creating a dns entry for a website in cloud server. A user came to me and asked me to register a site cloud.xxx.com to the following servers ns-1707.awsdns-21.co.uk.ns-1086.awsdns-07.org.ns-460.awsdns-57.com.ns-888.awsdns-47.net.He is also trying to host this site in amazon cloud. So hope you can help me to do this. I have no experience in working with cloud. reply as soon as possible its urgent . my contact mr.sriram@hotmail.com  +919003826700
    ns-888.awsdns-47.net.

    He is also trying to host this site in amazon cloud. So hope you can help me to do this. I have no experience in working with cloud. reply as soon as possible its urgent . my contact mr.sriram@hotmail.com  +919003826700

  31. […] This Web Site is Now Hosted on Amazon EC2 & S3 | Web Site of Rajiv Pant […]

  32. hi. please let me know step by step procedure to point to my domain from aws 

  33. hi. please let me know step by step procedure to point to my domain from aws 

    1. Anonymous

       I love reading through your blog, I wanted to leave a little comment to support you and you a good continuation. Wishing you the best of luck for all your blogging efforts.
      blue host promotions

  34. hi please let me know how did u host on ur domin from ec2

  35. Can you have root access of this linux?

    About “root access” I means shell access, as like “remote desktop” for windows.

    thanks a lot

    1. Yes, absolutely. It works similar to how it would with a traditional hosting account.

  36. how abt the pricing, could you detail about it please..

  37. […] allows me to use the modern Ubuntu1 GNU/Linux operating system, Server Edition. Among Ubuntuâ??s many benefits are its user […]

  38. Satyavrat Bondre

    a little late on the question, but we have our solutions running on ec2. we have our own web site hosted on ix web hosting. any clue how i can tie these two together?
    Please note that i am a total newbie at this, so all i really want to do is register my webpages hosted on ec2 as the same name as my website.

  39. Anonymous

    How much is your monthly bill comes to?

  40. […] This Web Site is Now Hosted on Amazon EC2 & S3 | Web Site of .Feb 4, 2008 This web site, http://www.rajiv.com is now hosted on Amazon.com's Elastic Compute Cloud (EC2) and […]

  41. Anonymous

    I would love to know more about programming and technology related things. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.

    field turf

  42. Ram Karthik

    What will be the application server to host the Cloud Computing code?

  43. Ram Karthik

    Can someone plz help me to my question ?

Leave a Reply

Related Articles

Discover more from rajiv.com

Subscribe now to keep reading and get access to the full archive.

Continue reading