science of saving with aws reserved instances - 9/11/14
DESCRIPTION
Choosing the right Reserved Instances isn’t an art, it’s a science. Perfecting that science could save you up to 65% on your AWS bill. In this presentation, you’ll learn the math and science used by thousands of AWS users to optimize their Reserved Instance portfolios. Topics include: - Identifying the right Reserved Instances for your company's usage - Avoiding common Reserved Instance pitfalls - Maintaining long-term savings as your usage changesTRANSCRIPT
@cloudability
@cloudability
The Science Of Saving With AWS Reserved Instances
@cloudability
Introduction
Today’s Topics1. Purchasing Pitfalls
2. Anatomy Of A Reservation
3. A Simplified Calculation
4. Reservation Purchasing Recommendations
Aaron Kaffen Director of Marketing
TODAY’S SPEAKER
@cloudability
Poll
Is your company currently purchasing AWS reservations?
@cloudability
WARNING: Math ahead.
@cloudability
About Us
Cloud Infrastructure Analytics
Over $1B in tracked cloud costs across 10,000+ users
@cloudability
Our SolutionHow It Works
1 2 3
4 5
Spend Management Spending visibility via monthly forecasts, dash-board, budget alerts, and daily email digests.
Cost Analytics Dig into your operating costs with detailed costs by tag, service, and usage type. !
EC2 Usage Analytics Spot under-utilized resources w/ instance level usage metrics. !!
RI Purchase Analytics Understand the exact combination of Reserved Instances that will maximize your savings. !
Enterprise Enablement Organizational group views/filtering/rollups, multi-user access. !
$1B+ of cloud spending under management • 13,000 users
@cloudability
No Software to InstallHow It Works
We Collect We pull data directly from public cloud provider APIs.
We Store We warehouse your historical data.
You Access You log into cloudability.com to access analytics. !
@cloudability
Purchasing Pitfalls
@cloudability
Most companies over-simplify reservation purchasing
@cloudability
RESULT: RI purchases misalign to your needs reducing ROI
@cloudability
Go all in on 1 or 2 large buys each year
@cloudability
Result: Large cliffs in reservation levels
@cloudability
Poll
How frequently is your company purchasing reservations?
@cloudability
Anatomy of a Reservation
@cloudability
Anatomy of a Reservation
What is a Reservation?Reservations allow you to reserve resources/capacity for one or three years in a particular availability zone in exchange for a lower overall unit price.
COMPUTE
Amazon EC2
DATABASE
DynamoDB
RDS
Redshift
Elasticache
CDN
CloudFront
@cloudability
Anatomy of a Reservation
Why Make Reservations?
1. Lower the cost of resources you are already using Reservations provide substantial cost savings versus “on-demand” pricing.
2. Lock-in future capacity in the same Availability Zone Very useful if you experience bursts/spikes in usage
3. Reserve capacity in another region just in case... Demand spikes could cause a run on capacity. Reservations ensure you get seat at the table.
@cloudability
Reservations are applied each hour
@cloudability
Anatomy of a Reservation
What Makes Up a ReservationReserve a particular type of infrastructure:
Instance Family Size OS Location
m1 large Linux us-east-1a
r3 8xlarge RHEL us-west-2b
1 year 3 yearOR
light medium heavyOR OR
Instance class
Term
RI type
For a particular time:
With an expected usage level
@cloudability
Anatomy of a Reservation
Pricing Components
Reservation Type Upfront Fee Hourly Usage Fee Minimum Usage Level
Light Low Highest
None If the instance is not used during the hour, there is no charge.
Medium Higher Higher
None If the instance is not used during the hour, there is no charge.
Heavy Highest Low
Yes Billed a full month’s worth of hours at the start of each month.
@cloudability
Anatomy of a Reservation
Break-even Points
m1.xlarge LINUX us-east-1a instance - over 3 years
Annual Utilization Rate Light RI Savings Rate Medium RI Savings Rate Heavy RI Savings Rate
20% 25% -7% -77%
40% 40% 33% 11%
60% 45% 46% 41%
80% 48% 52% 56%
100% 49% 59% 65%
There are 2,000+ different reservation classes each with their own “break-even” points.
@cloudability
Anatomy of a Reservation
Break-even Points
m1.xlarge LINUX us-east-1a instance - over 3 years
Annual Utilization Rate Light RI Savings Rate Medium RI Savings Rate Heavy RI Savings Rate
20% 25% -7% -77%
40% 40% 33% 11%
60% 45% 46% 41%
80% 48% 52% 56%
100% 49% 59% 65%
There are 2,000+ different reservation classes each with their own “break-even” points.
@cloudability
Poll
Why is your company purchasing reservations?
@cloudability
A Simplified Calculation
@cloudability
A Simplified Reservation Calculation
Overall utilization can be misleading
@cloudability
A Simplified Reservation Calculation
A tale of three instances
30% 30% 30%
30% is greater than the break even point for a light reservation
1 2 3
3 Light
@cloudability
A Simplified Reservation Calculation
A tale of three instances
Remember: Reservations are applied every hour
@cloudability
A Simplified Reservation Calculation
A tale of three instances
If the instances are running at the same time you need multiple RIs
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 26 27 28 29
30
@cloudability
A Simplified Reservation Calculation
A tale of three instances
On-demand hourly cost $0.240
RI hourly cost $0.136
RI upfront fees $729
Effective hourly rate @ 30% utilization $0.228
Hourly Savings $0.011
Total Savings for this example $90.93
@cloudability
4.8%
SAVINGS RATE
@cloudability
A Simplified Reservation Calculation
A tale of three instances
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 26 27 28 29
30
@cloudability
A Simplified Reservation Calculation
A tale of three instances
Collectively the 3 instances cover 90% of the hours of the month
21
3
Heavy
@cloudability
A Simplified Reservation Calculation
A tale of three instances
On-demand hourly cost $0.240
RI upfront fee $676
RI hourly cost $0.056
Effective hourly rate @ 90% utilization $0.141
Hourly Savings $0.098
Total Savings for this example $774.65
@cloudability
41%
SAVINGS RATE
@cloudability
Intro
A tale of three instances
1 Heavy 3 Lights
Total Savings $774.65 $90.93
Total upfront fees $676 $729
Buying 3 lights would have wasted $486 in upfront fees
@cloudability
Applying what we’ve learned:
You have to understand how many instances are running each hour to know how many RIs to purchase
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the Month
Hour of month Running Instances
1 4
2 6
3 0
4 5
5 7
6 8
7 5
8 3
9 12
10 3
(example assumes 10 hours in the month)
@cloudability
A Simplified Reservation Calculation
Example break-even points
RI Type Utilization Rate
Light 20%
Medium 30%
Heavy 60%
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the Month
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
90%1 INSTANCE
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
90%2 INSTANCES
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
90%3 INSTANCES
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
70%4 INSTANCES
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
60%5 INSTANCES
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
5 Heavy
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
30%7 INSTANCES
5 Heavy
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
5 Heavy
2 Medium
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
5 Heavy
2 Medium
20%8 INSTANCES
@cloudability
A Simplified Reservation Calculation
Running Instances by Hour of the
0
3
6
9
12
1 2 3 4 5 6 7 8 9 10
5 Heavy
2 Medium
1 Light
@cloudability
Put it into practice!
(demo time)
@cloudability
Purchasing Recommendations
@cloudability
Purchasing Recommendations
Putting It To Work At Your Company
• Base purchase decisions on hourly instance counts of each instance type per Availability Zone (not aggregate data)
!
• Frequent reservation purchases help maximize cost efficiency
!
• Don’t over-purchase heavy reservations. Utilize Light and Medium reservations to handle volatility
@cloudability
Thank You!
For more info
Or contact us
cloudability.com
Presentation cldy.co/ri-deck