This document provides a summary of a presentation on cost optimization at scale when using AWS. The presentation covers building architectures with cost in mind, implementing and maintaining cost-optimized operations, and getting started with a cost optimization program. It discusses key drivers of cost optimization like right-sizing instances, increasing elasticity, leveraging the right pricing models and storage classes, and measuring and monitoring usage. The presentation provides case studies and examples of how customers have been able to significantly reduce their AWS costs through these techniques. It also discusses tools and programs available from AWS and partners to help customers implement cost optimization practices at scale.
7. What to expect
We will introduce our framework for
optimizing your AWS bill by focusing on
paying only for what you need.
Share lessons learned from our most
successful customers.
And leave you with actionable ideas to take
back to the office to implement
immediately.
12. Best Practice Framework for Architecting on AWS
Performance
Ensure a system delivers maximum
performance for a set of resources.
Cost Optimization
Achieve the lowest price for a workload
taking into account fluctuating needs.
Reliability
Ensuring a given system is architected to
meet operational thresholds during a
specific period of time.
Security
Review definitions and compliance best
practices.
15. The Five Pillars of Cost Optimization
Right-sizing your
instances
Pick the right
pricing model
Increase elasticity
Measuring &
monitoring
Match usage to
storage class
16. Pillar 1: Right-Sizing
Right-sizing
• Selecting the cheapest instance available
while meeting performance requirements
• Looking at CPU, RAM, storage, and network
utilization to identify potential instances that
can be downsized
• Leveraging Amazon CloudWatch metrics and
setting up custom RAM metrics
Rule of thumb: Right size, then reserve.
(But if you’re in a pinch, reserve first.)
17. Pillar 2: Increase Elasticity
Turn off nonproduction instances
• Look for dev/test, nonproduction instances that
are running always-on and turn them off.
• Lambda + CloudWatch = Automated Scheduling*
Autoscale production
• Use Auto Scaling to scale up and down based on
demand and usage (for example, spikes).
* https://aws.amazon.com/premiumsupport/knowledge-center/start-stop-lambda-cloudwatch/
23. How to take advantage of
Reserved Instances while
maximizing flexibility?
24. Introducing Convertible Reserved Instances
With a Convertible Reserved Instance, you can modify
your existing reservation across:
Instance families
Instance sizes
Operating systems
Tenancy
28. Reserved Instances
Step 1: Reserved Instance Coverage
• Cover always-on resources with standard or
convertible Reserved Instances
Step 2: Increase Reserved Instance
Utilization
• Known architectures: Leverage Standard
Reserved Instance flexibility to increase
utilization.
• Growing or changing architectures: Leverage
Convertible Reserved Instances across
families, sizes, and OS.
• Regional Benefit: Consolidated billing,
reservation not critical
29. Options
• Spot Fleet to maintain instance
availability
• Spot Block durations (1-6 hours)
for workloads that must run
continuously
Commitment level
• None
* Compared to On Demand price based on specific EC2 instance type, region, and Availability Zone
Consider Spot for Elastic Workloads
30. Spot Rules
50% of OD
75% of OD
25% of OD
You pay the market price
87% discount!
You’ll Never Pay More Than Your Bid
36. Object Storage Classes on Amazon S3
Active data Archive dataInfrequently accessed data
Standard
Hot
Standard - Infrequent Access
Warm
Amazon Glacier
Cold
37. Running the Numbers: S3 or S3-IA
Comparing 1 PB of object storage*
1PB Monthly
S3 S3-IA Savings %
$24,117 $14,116 41%
Rule of thumb: Breakeven = 105% Retrieved per Month
Content Accessed
per Month
10%
$24,117 $18,350 24%50%1PB Monthly
$24,117 $23,593 2%100%1PB Monthly
* Based on US-East Prices
55. Enabling Cost Transparency
Must have tagging:
• Cost center
• Application or workload
• User
• Expiration date
• Automation support
http://ape.gs/AWSAutoTag
63. AWS Trusted Advisor
Helping customers automate best practices (checks) across
cost optimization, security, fault tolerance, and performance
improvement
Red (action recommended)
Orange (investigation recommended)
Green (no problem detected)
64. “We estimate an average
33% monthly savings on our
total AWS spend.”
Amit Vora, CTO for Hungama
75. Bridging the Gap Between Agents & Principles
Principles Agents
CoE
76. Questions your COE Should be Asking
1. How much of our workloads are “steady state”?
2. What’s keeping us from reserving capacity?
3. How are we currently handling our elasticity needs?
4. Have we had a Well Architected review with AWS?
5. How can I be more involved in our process?
77. • Aligning Incentives (Carrots & Sticks)
• Automation
• Reporting
• Control & Governance
• Metrics / KPIs
Cloud Center of Excellence
79. Metrics and Targets
% instances turned off daily
% of instances right-sized
% always-on resources covered by Reserved
Instances
% Reserved Instance utilization
✔ ✔
✔ ✔
✘
✘
✘
✘
Define success by establishing metrics and track progress
Cost-Based
80. Value Based Optimization Metrics
A company’s overall AWS cost should be evaluated as a unit cost ratio with
respect to another defined metric:
𝑈𝑛𝑖𝑡 𝐶𝑜𝑠𝑡 =
𝑇𝑜𝑡𝑎𝑙 𝐶𝑜𝑠𝑡
𝐼𝑛𝑑𝑖𝑣𝑖𝑑𝑢𝑎𝑙 𝑜𝑟 𝐵𝑢𝑠𝑖𝑛𝑒𝑠𝑠 𝑀𝑒𝑡𝑟𝑖𝑐
Examples
• Unit cost per customer or active subscriber
• Unit cost per revenue generated
• Unit cost per product or business unit
• Unit cost per internal user
• Unit cost per experiment
• Unit cost per FTE
Align to
Value Drivers
84. How to start your Cost
Optimization Program:
Learnings from Intuit’s cloud journey
Time: Thursday December 1st 1pm
Room: Titan 2202
Session: ENT 314
85. Support Programs
Well Architected Bootcamp:
Wednesday @ 1 - 5 pm
Cost Optimization Whitepaper:
We’re Here to Help
http://aws.amazon.com/well-architected
86. Trusted Advisor Free Trial
Everyone attending today’s session will get
free access to Trusted Advisor for 30 days.
How it works:
• Trial begins December 6, 2016
• Runs 30 days
• Full suite of checks and best practices available for
those not already on Enterprise & Business Level
Support plans
• No action required – Just log in and start using!
https://aws.amazon.com/premiumsupport/trustedadvisor/Learn more @