Edward de Leau

Weblog of Ed – since 1999 – 10000+ posts


How much does Amazon Cloud Hosting cost?

A while ago I moved the hosting for this (linux,nginx,mysql,php)(lnmp) weblog and some smaller sites to 1 reserved Amazon “server”. I wanted to give you an overview, now that some time has passed to give you an indication on how much hosting your own server in the Amazon Cloud costs so that I can more easily point someone to this blog posting in case he or she is interested in hosting some (smaller) sites themselves on Amazon.

profile: some smaller websites like a blog and some other websites e.g. a bunch of WordPress websites running on *nix

  • I ordered a reserved instance (see pricing list here: http://aws.amazon.com/ec2/pricing/#reserved) because this is cheaper : you pay a fee upfront so that your hourly rates are lower
  • I ordered the heavy utilization reserved instances because my websites are always on :)
  • I ordered within that category the “Medium Standard image” because the specs (3.75 GB Memory + 2 EC2 Units + 410GB diskspace) are what I expect to need for a couple of WordPress websites

The upfront costs for the heavy utilization reserved instance – standard medium instance Linux (m1.medium) – hosted in N. Virginia are: $ 600 ( in other words $ 16,66 per month )

 

Apart from this figure of upfront costs there are additional costs based on usage of this instance (which is a property of cloud hosting I like because of the transparancy), these are:

description my notes costs around
Amazon EC2 running Linux/UNIX Reserved Instances: Standard Medium Instance (m1.medium) Linux/UNIX instance-hours used this month depending on the month this is around 730 hours. You already paid for this in the upfront fee (2 EC2 images) so the costs are $0. $0
Amazon EC2 running Linux/UNIX Reserved Instances: $0.026 hourly fee per Linux/UNIX Standard Medium Instance (m1.medium) This is simply the hours in the month times the discounted hourly rate e.g. 744 hours for Januari. $ 19.34

Amazon EC2 EBS:  $0.10 per 1 million I/O requests

These are the total IO requests. On my sites between 8 million and 12 million currently depending on the month $ 086 – $2.80

Amazon EC2 EBS: $0.10 per GB-month of provisioned storage

This is the provisioned storage used. I currently have 3 EBS volumes attached of 8GiB for the main root and 2*10GiB for website storage (not that this is not the 410Gb diskspace in the image) $ 2.80
AWS Data Transfer:  $0.000 per GB – data transfer in per month I use between 3 and 4 GB / month data transfer in (which does not matter because it does not cost anything) (so I can upload all my photos without cost) $ 0
AWS Data Transfer: $0.000 per GB – first 1 GB of data transferred out per month for the first 1GB out it costs nothing
$ 0
AWS Data Transfer: $0.120 per GB – up to 10 TB / month data transfer out My data transfer out is around 30 GB /month (Cloudflare saves me something) around $3
AWS Data Transfer: $0.010 per GB – regional data transfer – in/out/between EC2 AZs or using IPs or ELB 0.1 GB to 0.3 GB $ 0.01
AWS Data Transfer: $0.00 per GB – US East (Northern Virginia) data transfer from Asia Pacific (Tokyo) 0.000002 GB ($0)
$ 0
AWS Data Transfer: $0.00 per GB – US East (Northern Virginia) data transfer from US West (Northern California) 0.000082 GB ($0) $ 0
AWS Data Transfer: $0.00 per GB – US East (Northern Virginia) data transfer from US West (Oregon) 0.000000 GB ($0) $ 0
AWS Data Transfer: $0.02 per GB – US East (Northern Virginia) data transfer to EU (Ireland) 0.001 GB ($0.01) $ 0
AWS Data Transfer:

$0.00 per GB – US East (Northern Virginia) data transfer from Asia Pacific (Singapore)

0.000000 GB ($0) $ 0
AWS Data Transfer: $0.02 per GB – US East (Northern Virginia) data transfer to South America (Sao Paulo) 0.000001 GB ($0.00) $ 0
AWS Data Transfer: $0.02 per GB – US East (Northern Virginia) data transfer to US West (Northern California)

0.000854 GB ($0.01)

$ 0
AWS Data Transfer: $0.02 per GB – US East (Northern Virginia) data transfer to Asia Pacific (Tokyo)

0.000049 GB ($0.01)

$ 0
AWS Data Transfer: $0.02 per GB – US East (Northern Virginia) data transfer to Asia Pacific (Singapore) 0.000001 GB ($0) $ 0
AWS Data Transfer: $0.00 per GB – US East (Northern Virginia) data transfer from EU (Ireland) 0.000018 GB ($0) $ 0
AWS Data Transfer: $0.00 per GB – US East (Northern Virginia) data transfer from South America (Sao Paulo) 0.000000 GB ($0) $ 0
VAT The VAT around $5.50
TOTAL   $ 33
TOTAL incl. $ 16.66 upfront $ 50

So there you have it: around $ 50 a month. I compared this with dedicated servers (without taking the actual hardware in mind) e.g. here and got:

image

But ofcourse, that is only price based without taking into account the benefits of cloud hosting in a feature rich environment as Amazon and the underlying hardware.

Or… to give a short screenshot of services to play with or develop against additionally @ Amazon:

image

Let alone the zillions of contributed images you can play with, with about any software package you can think of.

Some more metrics

For this weblog and some other smaller WordPress websites on this EC2 here are some metrics, so you can do your own sizing:

  • total physical webspace for sites: 2.2 Gb on my first ESB image of 8 Gib
  • total datatraffic out/month: 30 Gb
  • Maximum network out in Bytes: around 2,000,000 with daily peaks to 15,000,000 and some peeks to 60,000,000
  • total datatraffic in/month: about 3 Gb
  • Maximum network in Bytes: around 2,500,000 with some peeks to 5,000,000 and 1 peek above 10,000,000
  • total IO requests / month: 10 million (when I install functionality like chat bars it flips and explodes to the max, so dont)
  • log files and config files: around 200 Mb (incl nginx logs, secure logs, cron logs, mysqld log, …)
  • total physical databases size (complete) (mysql): 224Mb (mostly InnoDb tablespace)
  • about 2000 pageviews / day
  • average CPU utilization based on the last 2 weeks: 25% or lower with some peeks to 50%

So as you can see: I can still grow a lot in this configuration which gives me a peaceful feeling. I know from the past how worrysome it is when e.g. memory runs at its limits and you have to tweak the tiniest bits in MySql just to allow some users to even get access to your site, etc… OR: you IO is capping and no matter what …you pay an awful amount of money for all that extra IO (and you search like mad on your VPS in ways to handle it) … bad memories… So, dedicated, full control, well over sizing and a good platform to extend just in case.

As soon as one site starts to give you problems: move it to another instance in its own environment (providing the costs versus revenue is sufficient) which is in a cloud environment extremely easy: just click and you have another instance or click another button, do some little coding and you also have your contents in S3 buckets.

So I hope I have given you a small overview so you can balance if you want to head this way for your sites if you are in about the same configuration.

Comments