http://twitter.com/jdrumgoole 1
The Costs of Cloud Computing
Joe Drumgoolehttp://twitter.com/jdrumgoole
http://twitter.com/jdrumgoole 2
Real World Example : PutPlace
• Launched in 2008• Fully hosted in Amazon AWS• Ported from Dedicated Hosting• Full Break down of all Costs• This is real data – Warts and All• This is an IaaS Example
http://twitter.com/jdrumgoole 3
Architecture
http://twitter.com/jdrumgoole 4
Core Services
• S3 : Storage– Blob Storage– Read and write up to 5GB files– Rest API/SOAP API– POSIX semantics via EBS
• EC2 : Compute– Virtual Instances– Several Sizes– Local storage is volatile– Reserved Instances
http://twitter.com/jdrumgoole 5
Core Costs
• Resources– Running Compute instances– Stored Data
• Bandwidth– Data in and out of Amazon– Data between different Amazon regions
• Transactions– Reads and Writes to S3
http://twitter.com/jdrumgoole 6
Compute Costs 2008 (USD)
Size Memory(GB)
CPU Disk(GB)
Per Hour
Per Month (30)
Per Year (365)
Small 1.72 1 160 0.085 61.20 744.60
Large 7.5 4 850 0.34 244.80 2978.40
xLarge 15 8 1690 0.68 489.60 5956.80
http://twitter.com/jdrumgoole 7
Compute Costs 2010 (USD)
Size Memory(GB)
CPU Disk(GB)
Per Hour
Per Month (30)
Per Year (365)
Micro 0.6 1 160 0.02 14.40 172.80
Small 1.72 1 160 0.085 61.20 744.60
Large 7.5 4 850 0.34 244.80 2978.40
xLarge 15 8 1690 0.68 489.60 5956.80
http://twitter.com/jdrumgoole 8
Storage Costs
$0.15 per GB Month in 2008$0.14 per GB Month in 2010
$0.055 per GB for 5PB or more
http://twitter.com/jdrumgoole 9
Bandwidth Costs 2008
Data In : $0.10 per GBData Out : $0.15 per GB
http://twitter.com/jdrumgoole 10
Transactions 2008
Writes : $0.01 per 1000 requestsReads : $0.01 per 10,000
requests
Note : Only to S3
http://twitter.com/jdrumgoole 11
Jan-08
Jan-08
Jan-08
Jan-08
Feb-08
Feb-08
Feb-08
Mar-08
Mar-08
Mar-08
Mar-08
Apr-08
Apr-08
Apr-08
May-08
May-08
May-08
Jun-08
Jun-08
Jun-08
Jun-08Jul-0
8Jul-0
8Jul-0
8
Aug-08
Aug-08
Aug-08
Aug-08
Sep-08
Sep-08
Sep-08
Oct-08
Oct-08
Oct-08
Nov-08
Nov-08
Nov-08
Nov-08
$0.00
$100.00
$200.00
$300.00
$400.00
$500.00
$600.00
$700.00
$800.00
$900.00
$1,000.00
$1,100.00
$1,200.00
$1,300.00
$1,400.00
$1,500.00
$1,600.00
$1,700.00
$1,800.00
$1,900.00
$2,000.00
EC2 Total Costs : $13303
EC2 SmallEC2 xLargeEC2 Large
http://twitter.com/jdrumgoole 12
Jan-08
Jan-08
Jan-08
Jan-08
Feb-08
Feb-08
Mar-08
Mar-08
Mar-08
Mar-08
Apr-08
Apr-08
Apr-08
May-08
May-08
May-08
Jun-08
Jun-08
Jun-08Jul-0
8Jul-0
8Jul-0
8
Aug-08
Aug-08
Aug-08
Sep-08
Sep-08
Sep-08
Oct-08
Oct-08
Oct-08
Nov-08
Nov-08
Nov-08
$0.00
$50.00
$100.00
$150.00
$200.00
$250.00
$300.00
$350.00
$400.00
$450.00
$500.00
S3 Storage Total Costs: $2575
S3 Storage
http://twitter.com/jdrumgoole 13
Jan-08
Jan-08
Jan-08
Feb-08
Feb-08
Feb-08
Mar-08
Mar-08
Mar-08
Apr-08
Apr-08
May-08
May-08
May-08
Jun-08
Jun-08
Jun-08Jul-0
8Jul-0
8Jul-0
8
Aug-08
Aug-08
Aug-08
Sep-08
Sep-08
Oct-08
Oct-08
Oct-08
Nov-08
Nov-08
Nov-08
$0.00
$5.00
$10.00
$15.00
$20.00
$25.00
$30.00
$35.00
$40.00
$45.00
$50.00
Bandwidth Total Costs: $508.11
EC2 Data InEC2 Data OutElastic IP xfer
Dolla
rs
http://twitter.com/jdrumgoole 14
Jan-08
Jan-08
Jan-08
Jan-08
Feb-08
Feb-08
Mar-08
Mar-08
Mar-08
Mar-08
Apr-08
Apr-08
Apr-08
May-08
May-08
May-08
Jun-08
Jun-08
Jun-08Jul-0
8Jul-0
8Jul-0
8
Aug-08
Aug-08
Aug-08
Sep-08
Sep-08
Sep-08
Oct-08
Oct-08
Oct-08
Nov-08
Nov-08
Nov-08
$0.00
$20.00
$40.00
$60.00
$80.00
$100.00
$120.00
$140.00
$160.00
$180.00
$200.00
Puts/Lists Total Costs: $516.92
Puts/Lists
http://twitter.com/jdrumgoole 15
Cost Break Down
Area Cost %Compute 13303.60 78%Storage 2575.00 15%Bandwidth 508.11 2%Transactions 516.90 3.39%Elastic IPs 84.79 0.5%
http://twitter.com/jdrumgoole 16
Dedicated Hosting Costs
• Co-Located Servers– $16,000 (including local disk + B/W)
• But:– Long lead times for additional servers– 1 year leases– No durable storage
http://twitter.com/jdrumgoole 17
What would I do Today
• Same architecture• Use a POSIX distributed file system on nodes• Start will less redundancy• Work will more smaller instances• Look at Google App Engine for Web Pages/API• Use MySQL rather than Postgres• Worry less about scaling
http://twitter.com/jdrumgoole 18
What you should learn
• The mantra– Compute– Storage– Bandwidth– Transactions
• Know your costs, check your bills• Code errors will now cost real money
http://twitter.com/jdrumgoole 19
Q&A