views:

4884

answers:

3

Our company is thinking about switching IT hosting strategy for the long run. We have been playing with some EC2 instances and we are interested in looking at a possible switch over cloud computing. Our only option is not amazon but is definitely one of the famous.

I know that there are different instance options in terms of pricing. I am wondering if there is a rule of thumb (bulkpark figure) for pricing per hour for an entire instance. This means: Including the instance price, a fair amount of BW, EBS pricing, I/O and all that good stuff. So We can make a reasonable comparison with the traditional hosting companies. This pricing might depend on the amount of traffic per server and a lot of other variables, but we are looking at an average figure, some servers could be more some others could be less.

Well, I know this might be useful to other people out there that are thinking on the switch over.

+7  A: 

I don't think AWS compares well for straight web hosting -- it's more for large scale apps that have dramatic peaks.

If you do go the EC2 route for hosting your website:

  • Don't use an m1.small instance. Use at least a c1.medium. m1.small instances are underpowered, especially for dynamic sites.
  • I doubt you'll need EBS, unless you have a very large website. The m1.small instances have about 150GB of space available on them, and it only goes up from there. Unless you plan on doing something special, you won't need it.
  • Stick your assets in S3 and serve them up with CloudFront -- save your web server cpu time for processing dynamic content.

There is an AWS calculator available as well. I plugged in two c1.medium instances (~1500 hours), 512GB of bandwidth, plus 1TB of cloudfront bandwidth over 1 million requests. It came out to about $600/month.

Gary Richardson
If any database is involved, EBS should be used. Instance storage is volatile and if the instance dies, any data stored on it will go the way of the Dodo.
friism
Databases or not, EBS is a 100% must-have if you intend to use it as a webhost instead of a cluster node that requires no persistent storage.
jcapote
Your site should be backed up in revision control and you should have a deployment process. You should be ready to deal with an instance failure at any time. There's nothing wrong with EBS as your deployment strategy, but I prefer puppet/capistrano/etc.
Gary Richardson
+11  A: 

My website is completely hosted on Amazon EC2. In fact, I have posted a guide to configuring and running a similar Drupal-based website (or any website, really) on EC2.

My current hosting bill is ~$72 per month. I run a small instance, for which performance has been excellent. Now, I only see ~400-500 hits per day, with the highest spike being ~10,000 hits in a day, but from my tests it can support much more than that. All of my persistent data (MySQL, HTML files, logs, etc.) are stored on an Elastic Block Store which is snapshotted to S3 every hour.

Don't forget, your entire website is sitting behind the same Amazon fat pipe used to serve their other web services, so you can get some really fast load and transfer times. Billing for EC2 bandwidth is the same as it is for S3, so it scales really well.

It might not compare well, cost-wise, to low-end hosting, but I've been very happy with it. The ability to clone a site in a couple of minutes, test a new configuration, then either discard that site or switch over your elastic IP to point to the new site is pretty cool. I've used the revisioned backups of the EBS to roll back to a point before I accidentally deleted something and recover the deleted file.

Brad Larson
How much does that cost?
Seun Osewa
@Seun Osewa - How much does what cost? I list the base costs for Amazon EC2 in the answer, although with the new reserved instance pricing I'm paying only ~$30 / month for my site on EC2 at present.
Brad Larson
Missed it initially. How can it be that low?
Seun Osewa
@Seun Osewa - If you mean the $30 / month rate for reserved instances, you pay a one-time upfront fee, then get a much lower per-hour rate. See the Amazon Web Services fee calculator for more: http://calculator.s3.amazonaws.com/calc5.html
Brad Larson
A: 

Thanks Guys this was very useful information to me. I am trying to find the best EC2 configuration to suit my needs. I think AWS has it over Microsoft Azure. Cheers Ben