Managing a large portfolio of reservations across an ever-changing infrastructure requires a sophisticated and systematic approach. Attendees in this session walk away with a strategy for maximizing Reserved Instance (RI) coverage in their organization, as well as an understanding of specific tools and tactics to put that strategy into action. Sponsored by Cloudability.
Topics include:
- Reducing cycle times on the RI buying process
- Building a RI-friendly architecture
- Implementing a buy-measure-learn methodology that adapts to change
Report
Share
Report
Share
1 of 71
Download to read offline
More Related Content
(ENT203) Iterating Your Way To 95% Reserved Instance Usage | AWS re:Invent 2014
2. Today’s topics
•Introduce a Reserved Instancepurchasing methodology
•Understand how RIs are applied
•Learn the best metrics to measure RI effectiveness
•How to adjust reservations and infrastructure to achieve 95% coverage
Toban Zolman
VP, Product DevelopmentCloudability
toban@cloudability.com
3. @cloudability
Cloud cost analytics
Cloudability
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 underutilized 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
5. Why RIs? And why 95% coverage?
•RIs can be the easiest way to control costsAs a Product & Engineering head,I’d much rather use RIs to reduce cost than work on other efficiencies
•Every dollar spent on on-demand could be 50% cheaper with an RIWith the exception of unplanned or short-lived usage you should be running almost everything under a reservation
•With scalable architecture its not practical to have full 100% coverageA monthly buying and modification cycle can net you at about 95% coverage over the course of a year
6. What drives infrastructure changes?
•Application needsApps change, scale, and become more sophisticated needing more compute, memory,or storage
•Price changesAs Amazon drives down prices,it changes the cost profile of existing infrastructure
•New optimized instancetypesLeverage optimized instances to be more efficient
The goal is to anticipate these items and constantly tweak reservations to maximize coverage (and thus savings)
19. What makes up a reservation?
Instance
RI term
RI type
Instance family
Size
OS
Location (AZ)
m1
large
Linux
us-east-1a
1 year
Light
r3
8xlarge
RHEL
us-west-2b
3 years
Medium
m3
medium
Windows
ap-northeast-1b
1 year
Heavy
Source: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/reserved-instances-fundamentals.html
20. Each combination has a different price
There are 2,000+ different reservation configurations
•Each with their own up-front fee
•Each with their own hourly usage price
•Each with their own “break-even” points
Source: http://aws.amazon.com/ec2/pricing/
23. Fear, uncertainty, doubt stalls decisions
•Should I wait until prices drop?
•What if our usage changes?
•What if I don’t want to be in a contract for three years?
24. Actual AWS price history
$0.00
$0.25
$0.50
$0.75
$1.00
3/1/09
12/1/09
9/1/10
6/1/11
3/1/12
12/1/12
9/1/13
6/1/14
1 Year RI
3 Year RI
On Demand
25. Actual AWS price history (effective rate)
$0.00
$0.25
$0.50
$0.75
$1.00
3/1/09
12/1/09
9/1/10
6/1/11
3/1/12
12/1/12
9/1/13
6/1/14
1 Year RI
3 Year RI
On Demand
26. Total price 3 years of use
•Prices drop, but not fast enough to erode saving
•If usage is greater than 50% 3 year RIs saved money
Source: http://blog.cloudability.com/cloud-cost-war-shouldnt-stop-buying-reserved-instances/
27. Analyze worst case scenario
What if we bought an RI the day before a price change?
Old price
New price
Change
On demand
$0.26
$0.208
20%
1 year ri
$0.064
$0.056
12.5%
February 2013 price change (m1.large medium RI 80% usage):
Total cost
1 Year RI before change
$1,201
On demand after change
$1,458
New on-demand price still higher than old RI price
Total cost before and after
Source: http://blog.cloudability.com/cloud-cost-war-shouldnt-stop-buying-reserved-instances/
28. Cost of waiting for a change
Extra cost for 4 months of OD
Savings from locking in new price
Amount over paid
$387
$154
$233
Source: http://blog.cloudability.com/cloud-cost-war-shouldnt-stop-buying-reserved-instances/
34. How to structure monthly purchases
1.Cover as many hours as you can as quickly as you canThe faster you can get coverage the more you will save over time
2.Focus your budget on high confidence purchasesBuy reservations for instances that are (almost) always running
3.Focus on the highest savings firstBuy reservations for instances that have a rapid ROI
36. How to structure monthly purchases
1.Cover as many hours as you can as quickly as you canThe faster you can get coverage the more you will save over time
2.Focus your budget on high confidence purchasesBuy reservations for instances that are (almost) always running
3.Focus on the highest savings firstBuy reservations for instances that have a rapid ROI
4.Spread purchases horizontally across infrastructurePurchase tactically across all instance families to avoid cliffs and lock-in
46. Why instance familiesmatter
•RI modifications can only happen within a familyReservations can be changed at any time from one size to another within a family
•RIs can apply across consolidated billing accountsReservations can apply across linked accounts if the original account is not using it. Fewer families means more spots an RI can be applied.
48. Cost savings
m1.medium
m3.medium
On demand
$0.087
$0.07
Heavy RI upfront
$247
$222
Heavy RI hourly
$0.02
$0.018
Annual cost (100% util)
$762
$613
Save $150yr
20%savings
Source: http://aws.amazon.com/ec2/pricing/
49. Instance type migration paths
Legacy instance type
Modern instance type
T1
T2
M1
M1
M3
C1
C3
H1
I2
M2
R3
CR1
Source: http://aws.amazon.com/ec2/previous-generation/
50. Migration strategy
•Proactively plan instance type migrationsFinance and Ops have to talk on this one to understand when upgrades should happen and what impact it has on reservations
•Tactically renew reservations on legacy instancesIf you’re going to run a legacy instance for a while,you might as well cover it with an RI but only renew what you have to
High frequency reservation purchases make this transition easier
51. M1 reservations can still be a good deal
Buy RIs on legacy instance types ifyou are still going to be using them in 6 months (or shop in the marketplace for shorter term RIs)
savings
53. Modifying Reserved Instances
•Instances with Linux OSInstance type (within family) Availability Zone (within region) Network (VPC or Classic)
•Instances with a licensed OS or without a familyAvailability Zone (within region) Network (VPC or Classic)
•Reservations cannot be moved between accounts
55. Instance types without a family
•t1.micro*
•cr1.8xlarge*
•cc2.8xlarge*
•cg1.4xlarge*
•cr1.8xlarge*
•hi1.4xlarge*
•hs1.8xlarge
•g2.2xlarge
* LEGACY FAMILY
56. Modifying instancetype
Instance size
Normalization factor
micro
0.5
small
1
medium
2
large
4
xlarge
8
2xlarge
16
4xlarge
32
8xlarge
64
60. medium
medium
medium
medium
medium
medium
medium
medium
2xlarge
xlarge
xlarge
large
large
large
large
Modifying instance type
61. small
small
small
small
small
small
small
small
small
small
small
small
small
small
small
small
medium
medium
medium
medium
medium
medium
medium
medium
2xlarge
xlarge
xlarge
large
large
large
large
Modifying instance type
62. small
small
small
small
small
small
small
small
small
small
small
small
small
small
small
small
medium
medium
medium
medium
medium
medium
medium
medium
2xlarge
xlarge
xlarge
large
large
large
large
Modifying instance type
63. Reservations represent sunk cost
Modifications let you move those reservations tomaximize savings as your infrastructure changes
65. Amazon EC2 Reserved Instance Marketplace
If you simply can’t use existing reservations then selling them on the marketplace is a viable option
70. Take aways
•Buy RIs early and often
•Focus budget on “high confidence” purchases
•Measure RI coverage and cost-per-hour metrics
•Migrate, modify,and mature reservations to achieve 95% coverage