SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Optimizing Costs as You Scale
on AWS
R e b e k e r C h o i
S o l u t i o n s A r c h i t e c t
Level 200
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What you’ll get out of this session?
• Best practices on how to lower your AWS bill
• A more scalable, robust, dynamic architecture
• Real-world customer example
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS pricing philosophy
Ecosystem
Global footprint
New features
New services
Infrastructure
Innovation
63 price reductions
since 2006
More AWS
usage
More
infrastructure
Lower
infrastructure
costs
Reduced
prices
More
customers
Economies
of scale
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Five Pillars of Cost Optimization
Right-sizing your
instances
Increase elasticity Pick the right
pricing model
Leverage the
right service
Measures and
monitors for
optimization
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 1: EC2 Right-Sizing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 1: Right-Sizing
Right-sizing
• Selecting the instance available that best
meets your basic 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:
Monitor -> Baseline -> Right-size
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance ID Instance
Type
On-Demand
cost pm
Instance Specs Utilization data from Amazon
CloudWatch
ABC-123 c3.xlarge $193.45 4 vCPU
7.5GiB RAM
80 SSD
Max vCPU: 35%
Max Disk IO: 20
Max NW: 302 Mbps
Instance ID Instance
Type
On-Demand
cost pm
Instance Specs Savings
ABC-123 m4.large $129.94 2 vCPU
8GiB RAM
EBS only
33% savings
right-size
to
Selecting appropriate instance type
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 2: Increase Elasticity
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 2: Increase Elasticity
Turn off non-production instances
• Look for dev/test, non-production instances that are not
required being always-on and turn them off
• AWS Lambda + Amazon CloudWatch = Automated Scheduling*
• https://aws.amazon.com/answers/infrastructure-management/ec2-scheduler/
• https://aws.amazon.com/premiumsupport/knowledge-center/start-stop-lambda-cloudwatch/
Auto-scale production
• Use Auto Scaling to scale up and down based on demand
and usage (for example, spikes)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Utilization and Auto-Scaling: Granularity
small instances vs. large instances
43 instance hours
m4.xlarge @ $0.2/hr
= $8.6 / day
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance sizing
1x - m4.4xlarge
16 vcpu, 64GB
RAM
2x - m4.2xlarge
8 vpcu, 32GB RAM
8 vpcu, 32GB RAM
4 vpcu, 16GB RAM
4 vpcu, 16GB RAM
4 vpcu, 16GB RAM
4 vpcu, 16GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
2 vpcu, 8GB RAM
≈
4x - m4.xlarge
≈
8x – m4.large
≈
total cost is the same!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Utilization and Auto-Scaling: Granularity
small instances vs. large instances
43 instance hours
m4.xlarge @ $0.2/hr
= $8.6 / day
77 instance hours
m4.large @ $0.1/hr
= $7.7 / day
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
~10%
saving
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 3: Pick the Right Pricing Model
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
On-Demand
Instances
Reserved
Instances
Spot
Instances
Pay as you go for computing
power
Flat hourly rate, no upfront
commitments
Pay an upfront fee for a capacity
reservation and a lower hourly
rate (up to 72% savings)
1-year or 3-year terms
EC2, RDS, Redshift, ElastiCache,
Aurora, DynamoDB
Pay what you want for spare
capacity: your instances run if your
bid exceeds the Spot price
Potential for large scale at low cost:
When they’re available, take
advantage of 1,000s of Spot
Instances
Short-term, spiky and
unpredictable Steady state Time or instance flexible
Pillar 3: Pick the Right Pricing Model
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reserved Instances for Always-On Instances
43 instance hours
m4.xlarge @ $0.2/hr
= $8.6 / day
77 instance hours
m4.large @ $0.1/hr
= $7.7 / day
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
baseline
Reserved Instances
77 instance hours
m4.large OD @ $0.1/hr
m4.large RI @ $0.038/hr
= $6.212 / day
Baseline backed by Reserved Instances
Excess with On-Demand or Spot
~27.8%
saving
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 4: Leverage the Right Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 4: Right Service – Object Storage
Active data Archive dataInfrequently accessed & long-lived data
Standard
Hot
Standard - Infrequent Access
Warm
Amazon Glacier
Cold
$25 for 1TB data $20 for 1TB data
(20% saving)
$5 for 1TB data
(80% saving)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Lifecycle Management capabilities in s3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Continuous scalingNo servers to
manage
Never pay for idle
Auto Scaling
Automatic provisioning
No need to manage infrastructure
Just bring your code
100 ms payment granularity
Never pay for idle
Pillar 4: Right Service – Get rid of idle
time with AWS Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda
Consumers
Producer$0.02
per hour
(avg. calculated based on
consumption)
Producer
ConsumersEC2 instance
scheduler
$0.085
per hour
(small instance)
VS
Pillar 4: Lambda Example
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 4: Right Service - Offload popular traffic
to Amazon S3 and/or Amazon CloudFrontResponseTime
ServerLoad
Response
Time
Server
Load
Response
Time
Server
Load
No CDN CDN for Static
Content
CDN for Static
& Dynamic
Content
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pillar 5: Measure and Monitor
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tooling Options
AWS Options DIYAWS
Marketplace
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Trusted Advisor
Helping Customers automate best practices (checks) across cost optimization,
security, fault tolerance, and performance improvement
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Idle test instances running in us-west-1
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
…Or using an AWS Partner Tool…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Measuring and Monitoring
How do you implement “continuous cost
optimization” at scale?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
E x p e d i a : R e v o l u t i o n i z i n g t r a v e l t h r o u g h t h e p o w e r o f t e c h n o l o g y
2 0 0 + $ 8 3 . 8 B i l l i o n 2 8 9 M
T r a v e l B o o k i n g S i t e s G r o s s B o o k i n g s R o o m N i g h t s
I n o v e r 7 5 c o u n t r i e s
Source: Stats are for the 12 months ended 6/30/17 from Expediainc.com
Our Finance Mission:
“Drive effective and then efficient use of cloud related resources while ensuring that we can
properly forecast, account, report and make financially intelligent decisions that are aligned
across brands.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
H ere i s E xpedi a’s story … “C l ou d a nd th e Money S hi p”
Before...
After...
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How did we turn around the money ship?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Started with Optimization: Small temporary team
to look at all the apps to minimize waste
That did not last long, not sustainable long term
We knew the longer-term solution was to have cost
awareness become part of our DevOps culture
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
cost optimization cost transparency
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cost Transparency
Enabled automation
• Fixed our automation
to tag all taggable
resources
• Built automation to
automatically remove
untagged resources
within minutes
Tooling
• Team has cost
awareness by using
the tools to develop
new insights on
potential cost
efficiencies
Cloud Portfolio Analyzer
(CPA)
Define success
• Establishing metrics and
tracking progress
• E.g.
• % RI utilization
• % of resources covered by
RIs
• $ of unallocated resources
due to missing tags
• $ monthly forecast vs actual
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A consequence of cost transparency at Expedia:
Cost awareness become part of our DevOps culture
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reserved Instances pricing model is a key part of our strategy
Cover always-on resources with Standard Partial Upfront 1yr
RI with regional benefit
Smaller but more frequent RI purchases…
Every 5/6 months –> monthly -> weekly
Leveraged RIs for:
Amazon EC2
Amazon RDS
Amazon Redshift
Amazon ElastiCache
Cost Optimization
Measure, Monitor, Improve
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cost awareness became part of our DevOps culture
Maintain >90% tagging of all taggable resources
Increased RI coverage from 40% to 70%
Reduced instance hourly unit cost by 22%
Fivefold increase in savings
Even instance hourly usage increased by 250%
1 2 + m o n t h s l a t e r …
Results
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
C ost Opti mi zati on P racti ces
Cost Transparency
• Tagging automation
• Visualization and monitoring tools
Monitor & measure
Cost Optimization
• Leveraged RI pricing
Cost Accountability
• Encouraged teams to share optimization best practices
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Summary
• 5 pillars
• Right-Sizing
• Elasticity
• Strike the balance between different pricing model
• Leverage the right service
• Monitor, Measure & Optimize
• Cost optimization is an on-going process
• Culture of cost accountability
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
r e b e k e r @ a m a z o n . c o m

More Related Content

What's hot

Build Data Driven Apps with Real-time and Offline Capabilities
Build Data Driven Apps with Real-time and Offline CapabilitiesBuild Data Driven Apps with Real-time and Offline Capabilities
Build Data Driven Apps with Real-time and Offline Capabilities
Amazon Web Services
 
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDBSRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
Amazon Web Services
 
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
Amazon Web Services
 
Introducing Amazon Fargate
Introducing Amazon FargateIntroducing Amazon Fargate
Introducing Amazon Fargate
Amazon Web Services
 
Build a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million usersBuild a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million users
Amazon Web Services
 
RET301-Build Single Customer View across Multiple Retail Channels using AWS S...
RET301-Build Single Customer View across Multiple Retail Channels using AWS S...RET301-Build Single Customer View across Multiple Retail Channels using AWS S...
RET301-Build Single Customer View across Multiple Retail Channels using AWS S...
Amazon Web Services
 
MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...
MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...
MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...
Amazon Web Services
 
DVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational TransformationDVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational Transformation
Amazon Web Services
 
STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...
STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...
STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...
Amazon Web Services
 
MCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon Alexa
MCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon AlexaMCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon Alexa
MCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon Alexa
Amazon Web Services
 
AWS re:Invent 2017 Recap - Strategy & Direction
AWS re:Invent 2017 Recap - Strategy & DirectionAWS re:Invent 2017 Recap - Strategy & Direction
AWS re:Invent 2017 Recap - Strategy & Direction
Amazon Web Services
 
Build a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million usersBuild a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million users
Amazon Web Services
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
Amazon Web Services
 
Bagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist EventBagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist Event
Amazon Web Services
 
GPSBUS202_Driving Customer Value with Big Data Analytics
GPSBUS202_Driving Customer Value with Big Data AnalyticsGPSBUS202_Driving Customer Value with Big Data Analytics
GPSBUS202_Driving Customer Value with Big Data Analytics
Amazon Web Services
 
LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...
LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...
LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...
Amazon Web Services
 
GPSTEC201_Building an Artificial Intelligence Practice for Consulting Partners
GPSTEC201_Building an Artificial Intelligence Practice for Consulting PartnersGPSTEC201_Building an Artificial Intelligence Practice for Consulting Partners
GPSTEC201_Building an Artificial Intelligence Practice for Consulting Partners
Amazon Web Services
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
Amazon Web Services
 
GPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWS
GPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWSGPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWS
GPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWS
Amazon Web Services
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Amazon Web Services
 

What's hot (20)

Build Data Driven Apps with Real-time and Offline Capabilities
Build Data Driven Apps with Real-time and Offline CapabilitiesBuild Data Driven Apps with Real-time and Offline Capabilities
Build Data Driven Apps with Real-time and Offline Capabilities
 
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDBSRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
 
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
 
Introducing Amazon Fargate
Introducing Amazon FargateIntroducing Amazon Fargate
Introducing Amazon Fargate
 
Build a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million usersBuild a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million users
 
RET301-Build Single Customer View across Multiple Retail Channels using AWS S...
RET301-Build Single Customer View across Multiple Retail Channels using AWS S...RET301-Build Single Customer View across Multiple Retail Channels using AWS S...
RET301-Build Single Customer View across Multiple Retail Channels using AWS S...
 
MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...
MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...
MAE304-Turners Cloud Archive for CNN's Video Library and Global Multiplatform...
 
DVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational TransformationDVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational Transformation
 
STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...
STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...
STG314-Case Study Learn How HERE Uses JFrog Artifactory w Amazon EFS Support ...
 
MCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon Alexa
MCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon AlexaMCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon Alexa
MCL202_Ally Bank & Cognizant Transforming Customer Experience Using Amazon Alexa
 
AWS re:Invent 2017 Recap - Strategy & Direction
AWS re:Invent 2017 Recap - Strategy & DirectionAWS re:Invent 2017 Recap - Strategy & Direction
AWS re:Invent 2017 Recap - Strategy & Direction
 
Build a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million usersBuild a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million users
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
 
Bagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist EventBagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist Event
 
GPSBUS202_Driving Customer Value with Big Data Analytics
GPSBUS202_Driving Customer Value with Big Data AnalyticsGPSBUS202_Driving Customer Value with Big Data Analytics
GPSBUS202_Driving Customer Value with Big Data Analytics
 
LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...
LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...
LFS301-SAGE Bionetworks, Digital Mammography DREAM Challenge and How AWS Enab...
 
GPSTEC201_Building an Artificial Intelligence Practice for Consulting Partners
GPSTEC201_Building an Artificial Intelligence Practice for Consulting PartnersGPSTEC201_Building an Artificial Intelligence Practice for Consulting Partners
GPSTEC201_Building an Artificial Intelligence Practice for Consulting Partners
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
 
GPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWS
GPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWSGPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWS
GPSBUS215-Maximize Innovation and Agility by Building Your SAAS Solution on AWS
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
 

Similar to AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS

AWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices WebinarAWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices Webinar
Amazon Web Services
 
AWS Cost Optimisation Solutions
AWS Cost Optimisation SolutionsAWS Cost Optimisation Solutions
AWS Cost Optimisation Solutions
Amazon Web Services
 
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
Amazon Web Services
 
Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS
Amazon Web Services
 
AWS Commercial Management and Cost Optimisation - Dec 2017
AWS Commercial Management and Cost Optimisation - Dec 2017AWS Commercial Management and Cost Optimisation - Dec 2017
AWS Commercial Management and Cost Optimisation - Dec 2017
Amazon Web Services
 
Optimizar los costos a medida que mejora en AWS - MXO207 - Mexico City Summit
Optimizar los costos a medida que mejora en AWS - MXO207 - Mexico City SummitOptimizar los costos a medida que mejora en AWS - MXO207 - Mexico City Summit
Optimizar los costos a medida que mejora en AWS - MXO207 - Mexico City Summit
Amazon Web Services
 
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
Amazon Web Services
 
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
Amazon Web Services
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Amazon Web Services
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Amazon Web Services
 
Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...
Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...
Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...
Amazon Web Services
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Amazon Web Services
 
Advanced cost management strategies in AWS
Advanced cost management strategies in AWSAdvanced cost management strategies in AWS
Advanced cost management strategies in AWS
AWS User Group Bengaluru
 
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWSČesko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Vladimir Simek
 
透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本
Amazon Web Services
 
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
Amazon Web Services LATAM
 
Cost Optimization in AWS
Cost Optimization in AWSCost Optimization in AWS
Cost Optimization in AWS
AWS User Group Bengaluru
 
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at ScaleAWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
Amazon Web Services
 
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Amazon Web Services
 
Spending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_SingaporeSpending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_Singapore
Amazon Web Services
 

Similar to AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS (20)

AWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices WebinarAWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices Webinar
 
AWS Cost Optimisation Solutions
AWS Cost Optimisation SolutionsAWS Cost Optimisation Solutions
AWS Cost Optimisation Solutions
 
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
 
Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS
 
AWS Commercial Management and Cost Optimisation - Dec 2017
AWS Commercial Management and Cost Optimisation - Dec 2017AWS Commercial Management and Cost Optimisation - Dec 2017
AWS Commercial Management and Cost Optimisation - Dec 2017
 
Optimizar los costos a medida que mejora en AWS - MXO207 - Mexico City Summit
Optimizar los costos a medida que mejora en AWS - MXO207 - Mexico City SummitOptimizar los costos a medida que mejora en AWS - MXO207 - Mexico City Summit
Optimizar los costos a medida que mejora en AWS - MXO207 - Mexico City Summit
 
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
 
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
 
Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...
Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...
Optimizing EC2 for Fun and Profit #bigsavings #newfeatures - CMP202 - re:Inve...
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
 
Advanced cost management strategies in AWS
Advanced cost management strategies in AWSAdvanced cost management strategies in AWS
Advanced cost management strategies in AWS
 
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWSČesko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
 
透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本
 
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
 
Cost Optimization in AWS
Cost Optimization in AWSCost Optimization in AWS
Cost Optimization in AWS
 
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at ScaleAWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
 
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
 
Spending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_SingaporeSpending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_Singapore
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Optimizing Costs as You Scale on AWS R e b e k e r C h o i S o l u t i o n s A r c h i t e c t Level 200
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What you’ll get out of this session? • Best practices on how to lower your AWS bill • A more scalable, robust, dynamic architecture • Real-world customer example
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS pricing philosophy Ecosystem Global footprint New features New services Infrastructure Innovation 63 price reductions since 2006 More AWS usage More infrastructure Lower infrastructure costs Reduced prices More customers Economies of scale
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Five Pillars of Cost Optimization Right-sizing your instances Increase elasticity Pick the right pricing model Leverage the right service Measures and monitors for optimization
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 1: EC2 Right-Sizing
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 1: Right-Sizing Right-sizing • Selecting the instance available that best meets your basic 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: Monitor -> Baseline -> Right-size
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance ID Instance Type On-Demand cost pm Instance Specs Utilization data from Amazon CloudWatch ABC-123 c3.xlarge $193.45 4 vCPU 7.5GiB RAM 80 SSD Max vCPU: 35% Max Disk IO: 20 Max NW: 302 Mbps Instance ID Instance Type On-Demand cost pm Instance Specs Savings ABC-123 m4.large $129.94 2 vCPU 8GiB RAM EBS only 33% savings right-size to Selecting appropriate instance type
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 2: Increase Elasticity
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 2: Increase Elasticity Turn off non-production instances • Look for dev/test, non-production instances that are not required being always-on and turn them off • AWS Lambda + Amazon CloudWatch = Automated Scheduling* • https://aws.amazon.com/answers/infrastructure-management/ec2-scheduler/ • https://aws.amazon.com/premiumsupport/knowledge-center/start-stop-lambda-cloudwatch/ Auto-scale production • Use Auto Scaling to scale up and down based on demand and usage (for example, spikes)
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Utilization and Auto-Scaling: Granularity small instances vs. large instances 43 instance hours m4.xlarge @ $0.2/hr = $8.6 / day 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance sizing 1x - m4.4xlarge 16 vcpu, 64GB RAM 2x - m4.2xlarge 8 vpcu, 32GB RAM 8 vpcu, 32GB RAM 4 vpcu, 16GB RAM 4 vpcu, 16GB RAM 4 vpcu, 16GB RAM 4 vpcu, 16GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM 2 vpcu, 8GB RAM ≈ 4x - m4.xlarge ≈ 8x – m4.large ≈ total cost is the same!
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Utilization and Auto-Scaling: Granularity small instances vs. large instances 43 instance hours m4.xlarge @ $0.2/hr = $8.6 / day 77 instance hours m4.large @ $0.1/hr = $7.7 / day 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ~10% saving
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 3: Pick the Right Pricing Model
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. On-Demand Instances Reserved Instances Spot Instances Pay as you go for computing power Flat hourly rate, no upfront commitments Pay an upfront fee for a capacity reservation and a lower hourly rate (up to 72% savings) 1-year or 3-year terms EC2, RDS, Redshift, ElastiCache, Aurora, DynamoDB Pay what you want for spare capacity: your instances run if your bid exceeds the Spot price Potential for large scale at low cost: When they’re available, take advantage of 1,000s of Spot Instances Short-term, spiky and unpredictable Steady state Time or instance flexible Pillar 3: Pick the Right Pricing Model
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reserved Instances for Always-On Instances 43 instance hours m4.xlarge @ $0.2/hr = $8.6 / day 77 instance hours m4.large @ $0.1/hr = $7.7 / day 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 baseline Reserved Instances 77 instance hours m4.large OD @ $0.1/hr m4.large RI @ $0.038/hr = $6.212 / day Baseline backed by Reserved Instances Excess with On-Demand or Spot ~27.8% saving
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 4: Leverage the Right Service
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 4: Right Service – Object Storage Active data Archive dataInfrequently accessed & long-lived data Standard Hot Standard - Infrequent Access Warm Amazon Glacier Cold $25 for 1TB data $20 for 1TB data (20% saving) $5 for 1TB data (80% saving)
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Data Lifecycle Management capabilities in s3
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Continuous scalingNo servers to manage Never pay for idle Auto Scaling Automatic provisioning No need to manage infrastructure Just bring your code 100 ms payment granularity Never pay for idle Pillar 4: Right Service – Get rid of idle time with AWS Lambda
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda Consumers Producer$0.02 per hour (avg. calculated based on consumption) Producer ConsumersEC2 instance scheduler $0.085 per hour (small instance) VS Pillar 4: Lambda Example
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 4: Right Service - Offload popular traffic to Amazon S3 and/or Amazon CloudFrontResponseTime ServerLoad Response Time Server Load Response Time Server Load No CDN CDN for Static Content CDN for Static & Dynamic Content
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pillar 5: Measure and Monitor
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tooling Options AWS Options DIYAWS Marketplace
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Trusted Advisor Helping Customers automate best practices (checks) across cost optimization, security, fault tolerance, and performance improvement
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Idle test instances running in us-west-1
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. …Or using an AWS Partner Tool…
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Measuring and Monitoring How do you implement “continuous cost optimization” at scale?
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. E x p e d i a : R e v o l u t i o n i z i n g t r a v e l t h r o u g h t h e p o w e r o f t e c h n o l o g y 2 0 0 + $ 8 3 . 8 B i l l i o n 2 8 9 M T r a v e l B o o k i n g S i t e s G r o s s B o o k i n g s R o o m N i g h t s I n o v e r 7 5 c o u n t r i e s Source: Stats are for the 12 months ended 6/30/17 from Expediainc.com Our Finance Mission: “Drive effective and then efficient use of cloud related resources while ensuring that we can properly forecast, account, report and make financially intelligent decisions that are aligned across brands.”
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. H ere i s E xpedi a’s story … “C l ou d a nd th e Money S hi p” Before... After...
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How did we turn around the money ship?
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Started with Optimization: Small temporary team to look at all the apps to minimize waste That did not last long, not sustainable long term We knew the longer-term solution was to have cost awareness become part of our DevOps culture
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. cost optimization cost transparency
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cost Transparency Enabled automation • Fixed our automation to tag all taggable resources • Built automation to automatically remove untagged resources within minutes Tooling • Team has cost awareness by using the tools to develop new insights on potential cost efficiencies Cloud Portfolio Analyzer (CPA) Define success • Establishing metrics and tracking progress • E.g. • % RI utilization • % of resources covered by RIs • $ of unallocated resources due to missing tags • $ monthly forecast vs actual
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A consequence of cost transparency at Expedia: Cost awareness become part of our DevOps culture
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reserved Instances pricing model is a key part of our strategy Cover always-on resources with Standard Partial Upfront 1yr RI with regional benefit Smaller but more frequent RI purchases… Every 5/6 months –> monthly -> weekly Leveraged RIs for: Amazon EC2 Amazon RDS Amazon Redshift Amazon ElastiCache Cost Optimization Measure, Monitor, Improve
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cost awareness became part of our DevOps culture Maintain >90% tagging of all taggable resources Increased RI coverage from 40% to 70% Reduced instance hourly unit cost by 22% Fivefold increase in savings Even instance hourly usage increased by 250% 1 2 + m o n t h s l a t e r … Results
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. C ost Opti mi zati on P racti ces Cost Transparency • Tagging automation • Visualization and monitoring tools Monitor & measure Cost Optimization • Leveraged RI pricing Cost Accountability • Encouraged teams to share optimization best practices
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Summary • 5 pillars • Right-Sizing • Elasticity • Strike the balance between different pricing model • Leverage the right service • Monitor, Measure & Optimize • Cost optimization is an on-going process • Culture of cost accountability
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! r e b e k e r @ a m a z o n . c o m