SlideShare a Scribd company logo
1 of 62
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cloud economics
- Optimizing AWS expenditures
Best-practices and options overview
Joakim Stolpe
Helsinki AWSomeday 08-03-2018
What to expect
We will introduce our framework for
optimizing your AWS bill by focusing
on paying only for what you need.
And leave you with actionable ideas
to take back to the office to
implement immediately.
You’re using AWS
and you like it!
But maybe you are spending more
than you planned…
Or you’d just like to spend less
With the AWS
cloud, you only
pay for what you
use.
But how do you
ensure that you
only pay for what
you need?
What do you need and how do you build for it?
Initial Fixed
Capacity
Utilization
Unused Capacity = Wasted $
Downtime, Lost Customers, Lost Revenue (Impossible to measure)
More Wasted $
Time
Chapter I: Build With Cost In Mind
(Well Architected)
Analysts have shown AWS reduces cost over the long term
Source: IDC, Quantifying the Business Value of Amazon Web Services (May, 2015)
And we’ve heard it from our customers…
“We’ve seen a 52% total cost of
ownership reduction.”
Ben Wilson
CTO GE Oil & Gas
But it doesn’t just happen.
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.
Limit
Provisioning
Target
Setting
Automation
Periodic
Review
Charge-
backs
Pricing
Model
Autoscaling
Turn off
unused
Cost
Optimized
Direct
Inputs
Indirect
Inputs
Key Cost
Optimization
Drivers at
Scale
Where do you start?
The Five Pillars of Cost Optimization
Right-Sizing Your
Instances
Pick the Right
Pricing Model
Increase
Elasticity
Measuring &
Monitoring
Match usage to
storage class
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.)
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/
Pillar 3:
Leveraging the Right
Pricing Model
Reserved Instances
Spot Instances
On-Demand
Reserved Instances for Always-On Instances
Commitment level
• 1 year
• 3 year
AWS services offering RIs
• Amazon EC2
• Amazon RDS
• Amazon DynamoDB
• Amazon Redshift
• Amazon ElastiCache
* Dependent on specific AWS service, size/type, and region
New Reserved Instance Regional Benefit
The Reserved Instance Regional
Benefit allows customers to run
instances in any AZ in an AWS
Region and AWS will apply the
reservation pricing benefit to your
instances automatically.
Consider Convertible RIs where flexibility is required
With a Convertible Reserved Instance, you can modify
your existing reservation across:
Instance families
Instance sizes
Operating Systems
Tenancy
6x
increase
17%
M-1
15%
M0
91%
M1
92%
M2
RI
OD
SPOT
Key
16%
M-2
93%
M3
Improving EC2 RI Usage with Convertible RIs
(Bar: EC2 Instances by Purchase Option [count])
17%
M-1
15%
M0
91%
M1
92%
M2
RI
OD
SPOT
Key
16%
M-2
93%
M3
Improving EC2 RI Usage with Convertible RIs
(Bar: EC2 Instances by Purchase Option [count])
39%
Unit Cost
Decrease
Unit Cost*
Reserved Instances
Step 1: RI Coverage
• Cover always-on resources with standard or
convertible RIs
Step 2: Increase RI Utilization
• Known architectures: Leverage Standard RI
flexibility to increase utilization.
• Growing or changing architectures: Leverage
Convertible RIs across families, sizes, and OS.
• Regional Benefit: Consolidated billing,
reservation not critical
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
Consider Spot for Elastic Workloads
• Be Fault Tolerant
• Workloads should be Stateless
• Loosely Coupled workloads preferred
• If possible, deploy to Multiple AZs
• Instance Flexibility is king
• Take advantage of the 2 minutes warning
• There is always Spot capacity available
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
Novartis, Cycle Computing &
AWS Spot instances
Goal: Screen 10 million compounds against a
common cancer target
Estimated on-prem costs: $40M
Solution: Use 10,600 AWS Spot Instances
Outcome: 3 promising compounds identified
Cost: $4,232
Time: 9 Hours
Novartis, Cycle Computing &
AWS Spot instances
Strike a Balance
Finding balance between pricing options
Reserved
Instances
On Demand Spot
Pillar 4:
Leveraging the Right
Storage Class
Object Storage Classes on Amazon S3
Active data Archive dataInfrequently accessed data
Standard
Hot
Standard - Infrequent Access
Warm
Amazon Glacier
Cold
Standard-Infrequent Access (SIA)
Comparing S3-IA to S3 Standard
What’s the Same?
Access:
Almost identical to S3 standard with
same buckets and URLs
Durability:
11 “9’s” of durability
Performance:
Same characteristics as S3
Standard, low latency, high
throughput.
What’s Different?
Availability:
Designed for 99.9% availability, vs.
99.99% availability of S3.
Cost:
Lower Capacity fees, plus retrieval
fees. Minimum object size and
retention.
Running the Numbers: S3 or S3-IA
Comparing 1 PB of object storage*
S3 S3-IA Savings %
Rule of thumb: Breakeven ≈ 100% Retrieved per Month
Content Accessed
per Month
1PB Monthly $24,117 $14,116 41%10%
$24,117 $18,350 24%50%1PB Monthly
$24,117 $23,593 2%100%1PB Monthly
* Based on US-East Prices
Chapter II: Implement & Maintain
(Well Operated)
How do you implement those
best practices at scale?
(Spoiler Alert: Remember the 5th Pillar of Cost Optimization?)
Pillar 5: Measure & Monitor
Automation.
1. Identify always on instances.
2. Identify instances to downsize.
3. Identify warm / cold storage.
4. Recommend RIs to purchase.
5. Dashboard our status.
6. Report on savings.
Enabling Cost Transparency
Starting Here Ending here
Enabling Cost Transparency
Cost Allocation
Tagging
Must Have Tagging:
• Cost Center
• Application or Workload
• User
• Expiration Date
• Automation Support
http://ape.gs/AWSAutoTag
Tools for Measuring &
Monitoring
Option 1: DIY
Build your own custom dashboard
We’ve helped customers set up their own
dashboards and tools.
Metric Tracking
Savings
Spend & Metrics
by Account
EC2 Usage by
Purchase Option
Option 2: Use a Partner
And Partners have been successful helping
Customers monitor & manage cost
Option 3: AWS Tools
Trusted Advisor
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)
Idle Test Instances Running in us-west-1
Learn More @
https://aws.amazon.com/premiumsupport/trustedadvisor/
Bonus - Creating a Culture of Cost
Accountability
People & Process
Bridging the Gap Between Agents & Principles
Finance IT
CoE
Questions your Center of Excellence Should be Asking
1. How much of our workloads are “steady state”?
2. How are we currently handling our elasticity
needs?
3. Have we had a Well Architected review with AWS?
4. What’s keeping us from reserving capacity?
5. How can I be more involved in our process?
• Aligning Incentives (Carrots & Sticks)
• Automation
• Reporting
• Control & Governance
• Metrics / KPIs
Cloud Center of Excellence
Establish Clear Targets & Metrics
Metrics and Targets
• % instances turned off daily
• % of instances right-sized
• % always-on resources covered by RIs
• % RI utilization
Define success by establishing metrics and track progress
Cost-Based
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
Chapter III: Getting Started
(We can help)
Where to start
Set up a Cloud
Competency Center
Bring in the right
tools
Use metrics to
reinforce behavior
Use partners to
accelerate!
Cycle of cost optimization
✔
✔
✔
✔✘
✘
✘
✘
$
$
$
$
$
Thank You!

More Related Content

What's hot

Building a well-engaged and secure AWS account access management - FND207-R ...
 Building a well-engaged and secure AWS account access management - FND207-R ... Building a well-engaged and secure AWS account access management - FND207-R ...
Building a well-engaged and secure AWS account access management - FND207-R ...Amazon Web Services
 
AWS Cloud Migration Insights Forum
AWS Cloud Migration Insights ForumAWS Cloud Migration Insights Forum
AWS Cloud Migration Insights ForumAmazon Web Services
 
Building the business case for AWS
Building the business case for AWSBuilding the business case for AWS
Building the business case for AWSAmazon Web Services
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerAmazon Web Services
 
AWS 101 - An Introduction to the Amazon Cloud
AWS 101  - An Introduction to the Amazon CloudAWS 101  - An Introduction to the Amazon Cloud
AWS 101 - An Introduction to the Amazon CloudCloudHesive
 
Elastic Load Balancing Deep Dive - AWS Online Tech Talk
Elastic  Load Balancing Deep Dive - AWS Online Tech TalkElastic  Load Balancing Deep Dive - AWS Online Tech Talk
Elastic Load Balancing Deep Dive - AWS Online Tech TalkAmazon Web Services
 
Disaster Recovery with the AWS Cloud
Disaster Recovery with the AWS CloudDisaster Recovery with the AWS Cloud
Disaster Recovery with the AWS CloudAmazon Web Services
 
Understand AWS Pricing
Understand AWS PricingUnderstand AWS Pricing
Understand AWS PricingLynn Langit
 
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...Amazon Web Services
 
AWS Control Tower
AWS Control TowerAWS Control Tower
AWS Control TowerCloudHesive
 
Landing Zones - Creating a Foundation for Your AWS Migrations
Landing Zones - Creating a Foundation for Your AWS MigrationsLanding Zones - Creating a Foundation for Your AWS Migrations
Landing Zones - Creating a Foundation for Your AWS MigrationsAmazon Web Services
 
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Amazon Web Services
 

What's hot (20)

Building a well-engaged and secure AWS account access management - FND207-R ...
 Building a well-engaged and secure AWS account access management - FND207-R ... Building a well-engaged and secure AWS account access management - FND207-R ...
Building a well-engaged and secure AWS account access management - FND207-R ...
 
AWS Cloud Migration Insights Forum
AWS Cloud Migration Insights ForumAWS Cloud Migration Insights Forum
AWS Cloud Migration Insights Forum
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Building the business case for AWS
Building the business case for AWSBuilding the business case for AWS
Building the business case for AWS
 
AWS Storage Options
AWS Storage OptionsAWS Storage Options
AWS Storage Options
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control Tower
 
AWS 101 - An Introduction to the Amazon Cloud
AWS 101  - An Introduction to the Amazon CloudAWS 101  - An Introduction to the Amazon Cloud
AWS 101 - An Introduction to the Amazon Cloud
 
Elastic Load Balancing Deep Dive - AWS Online Tech Talk
Elastic  Load Balancing Deep Dive - AWS Online Tech TalkElastic  Load Balancing Deep Dive - AWS Online Tech Talk
Elastic Load Balancing Deep Dive - AWS Online Tech Talk
 
AWS 101
AWS 101AWS 101
AWS 101
 
Disaster Recovery with the AWS Cloud
Disaster Recovery with the AWS CloudDisaster Recovery with the AWS Cloud
Disaster Recovery with the AWS Cloud
 
Understand AWS Pricing
Understand AWS PricingUnderstand AWS Pricing
Understand AWS Pricing
 
AWS Security Best Practices
AWS Security Best PracticesAWS Security Best Practices
AWS Security Best Practices
 
AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2) AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2)
 
Introduction to AWS Security
Introduction to AWS SecurityIntroduction to AWS Security
Introduction to AWS Security
 
AWS Cloud Security
AWS Cloud SecurityAWS Cloud Security
AWS Cloud Security
 
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
 
Cloud Migration: A How-To Guide
Cloud Migration: A How-To GuideCloud Migration: A How-To Guide
Cloud Migration: A How-To Guide
 
AWS Control Tower
AWS Control TowerAWS Control Tower
AWS Control Tower
 
Landing Zones - Creating a Foundation for Your AWS Migrations
Landing Zones - Creating a Foundation for Your AWS MigrationsLanding Zones - Creating a Foundation for Your AWS Migrations
Landing Zones - Creating a Foundation for Your AWS Migrations
 
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
 

Similar to Cloud Economics

AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)Amazon Web Services
 
Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Amazon Web Services
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesAmazon Web Services
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesAmazon Web Services
 
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...Amazon Web Services
 
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAmazon Web Services
 
Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef Amazon Web Services
 
Achieving Your Department Objectives: Providing Better Citizen Services at Lo...
Achieving Your Department Objectives: Providing Better Citizen Services at Lo...Achieving Your Department Objectives: Providing Better Citizen Services at Lo...
Achieving Your Department Objectives: Providing Better Citizen Services at Lo...Amazon Web Services
 
Cost optimization at scale toronto v3
Cost optimization at scale toronto v3Cost optimization at scale toronto v3
Cost optimization at scale toronto v3Amazon Web Services
 
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...Amazon Web Services
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...Amazon Web Services
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Amazon Web Services
 
ManageYourCostsAndGovernYourUsageOnAWS[1]
ManageYourCostsAndGovernYourUsageOnAWS[1]ManageYourCostsAndGovernYourUsageOnAWS[1]
ManageYourCostsAndGovernYourUsageOnAWS[1]Guy KFIR
 
Cost Optimization on AWS - Pop-up Loft Tel Aviv
Cost Optimization on AWS - Pop-up Loft Tel AvivCost Optimization on AWS - Pop-up Loft Tel Aviv
Cost Optimization on AWS - Pop-up Loft Tel AvivAmazon Web Services
 
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일Amazon Web Services Korea
 

Similar to Cloud Economics (20)

AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
 
Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
 
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
 
Cost Optimization at Scale
 Cost Optimization at Scale Cost Optimization at Scale
Cost Optimization at Scale
 
Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef
 
Achieving Your Department Objectives: Providing Better Citizen Services at Lo...
Achieving Your Department Objectives: Providing Better Citizen Services at Lo...Achieving Your Department Objectives: Providing Better Citizen Services at Lo...
Achieving Your Department Objectives: Providing Better Citizen Services at Lo...
 
Cost optimization at scale toronto v3
Cost optimization at scale toronto v3Cost optimization at scale toronto v3
Cost optimization at scale toronto v3
 
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
ManageYourCostsAndGovernYourUsageOnAWS[1]
ManageYourCostsAndGovernYourUsageOnAWS[1]ManageYourCostsAndGovernYourUsageOnAWS[1]
ManageYourCostsAndGovernYourUsageOnAWS[1]
 
Cost Optimization on AWS - Pop-up Loft Tel Aviv
Cost Optimization on AWS - Pop-up Loft Tel AvivCost Optimization on AWS - Pop-up Loft Tel Aviv
Cost Optimization on AWS - Pop-up Loft Tel Aviv
 
Cloudonomics
CloudonomicsCloudonomics
Cloudonomics
 
Cost Optimization at Scale
Cost Optimization at ScaleCost Optimization at Scale
Cost Optimization at Scale
 
Cost Optimization at Scale
Cost Optimization at ScaleCost Optimization at Scale
Cost Optimization at Scale
 
Achieving Profitability on AWS
Achieving Profitability on AWSAchieving Profitability on AWS
Achieving Profitability on AWS
 
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
 

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 FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon 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
 
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 WorkloadsAmazon 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 sfatareAmazon 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 NodeJSAmazon 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 webAmazon 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 sfatareAmazon 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 ServiceAmazon 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
 

Cloud Economics

  • 1. ©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cloud economics - Optimizing AWS expenditures Best-practices and options overview Joakim Stolpe Helsinki AWSomeday 08-03-2018
  • 2. What to expect We will introduce our framework for optimizing your AWS bill by focusing on paying only for what you need. And leave you with actionable ideas to take back to the office to implement immediately.
  • 3. You’re using AWS and you like it!
  • 4. But maybe you are spending more than you planned…
  • 5. Or you’d just like to spend less
  • 6. With the AWS cloud, you only pay for what you use.
  • 7. But how do you ensure that you only pay for what you need?
  • 8. What do you need and how do you build for it? Initial Fixed Capacity Utilization Unused Capacity = Wasted $ Downtime, Lost Customers, Lost Revenue (Impossible to measure) More Wasted $ Time
  • 9. Chapter I: Build With Cost In Mind (Well Architected)
  • 10. Analysts have shown AWS reduces cost over the long term Source: IDC, Quantifying the Business Value of Amazon Web Services (May, 2015)
  • 11. And we’ve heard it from our customers… “We’ve seen a 52% total cost of ownership reduction.” Ben Wilson CTO GE Oil & Gas
  • 12. But it doesn’t just happen.
  • 13. 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. Where do you start?
  • 16. The Five Pillars of Cost Optimization Right-Sizing Your Instances Pick the Right Pricing Model Increase Elasticity Measuring & Monitoring Match usage to storage class
  • 17. 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.)
  • 18. 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/
  • 19. Pillar 3: Leveraging the Right Pricing Model Reserved Instances Spot Instances On-Demand
  • 20. Reserved Instances for Always-On Instances Commitment level • 1 year • 3 year AWS services offering RIs • Amazon EC2 • Amazon RDS • Amazon DynamoDB • Amazon Redshift • Amazon ElastiCache * Dependent on specific AWS service, size/type, and region
  • 21. New Reserved Instance Regional Benefit The Reserved Instance Regional Benefit allows customers to run instances in any AZ in an AWS Region and AWS will apply the reservation pricing benefit to your instances automatically.
  • 22. Consider Convertible RIs where flexibility is required With a Convertible Reserved Instance, you can modify your existing reservation across: Instance families Instance sizes Operating Systems Tenancy
  • 23. 6x increase 17% M-1 15% M0 91% M1 92% M2 RI OD SPOT Key 16% M-2 93% M3 Improving EC2 RI Usage with Convertible RIs (Bar: EC2 Instances by Purchase Option [count])
  • 24. 17% M-1 15% M0 91% M1 92% M2 RI OD SPOT Key 16% M-2 93% M3 Improving EC2 RI Usage with Convertible RIs (Bar: EC2 Instances by Purchase Option [count]) 39% Unit Cost Decrease Unit Cost*
  • 25. Reserved Instances Step 1: RI Coverage • Cover always-on resources with standard or convertible RIs Step 2: Increase RI Utilization • Known architectures: Leverage Standard RI flexibility to increase utilization. • Growing or changing architectures: Leverage Convertible RIs across families, sizes, and OS. • Regional Benefit: Consolidated billing, reservation not critical
  • 26. 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
  • 27. Consider Spot for Elastic Workloads • Be Fault Tolerant • Workloads should be Stateless • Loosely Coupled workloads preferred • If possible, deploy to Multiple AZs • Instance Flexibility is king • Take advantage of the 2 minutes warning • There is always Spot capacity available
  • 28. 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
  • 29. Novartis, Cycle Computing & AWS Spot instances Goal: Screen 10 million compounds against a common cancer target Estimated on-prem costs: $40M
  • 30. Solution: Use 10,600 AWS Spot Instances Outcome: 3 promising compounds identified Cost: $4,232 Time: 9 Hours Novartis, Cycle Computing & AWS Spot instances
  • 31. Strike a Balance Finding balance between pricing options Reserved Instances On Demand Spot
  • 32. Pillar 4: Leveraging the Right Storage Class
  • 33. Object Storage Classes on Amazon S3 Active data Archive dataInfrequently accessed data Standard Hot Standard - Infrequent Access Warm Amazon Glacier Cold
  • 34. Standard-Infrequent Access (SIA) Comparing S3-IA to S3 Standard What’s the Same? Access: Almost identical to S3 standard with same buckets and URLs Durability: 11 “9’s” of durability Performance: Same characteristics as S3 Standard, low latency, high throughput. What’s Different? Availability: Designed for 99.9% availability, vs. 99.99% availability of S3. Cost: Lower Capacity fees, plus retrieval fees. Minimum object size and retention.
  • 35. Running the Numbers: S3 or S3-IA Comparing 1 PB of object storage* S3 S3-IA Savings % Rule of thumb: Breakeven ≈ 100% Retrieved per Month Content Accessed per Month 1PB Monthly $24,117 $14,116 41%10% $24,117 $18,350 24%50%1PB Monthly $24,117 $23,593 2%100%1PB Monthly * Based on US-East Prices
  • 36. Chapter II: Implement & Maintain (Well Operated)
  • 37. How do you implement those best practices at scale? (Spoiler Alert: Remember the 5th Pillar of Cost Optimization?)
  • 38. Pillar 5: Measure & Monitor
  • 39. Automation. 1. Identify always on instances. 2. Identify instances to downsize. 3. Identify warm / cold storage. 4. Recommend RIs to purchase. 5. Dashboard our status. 6. Report on savings.
  • 41. Enabling Cost Transparency Cost Allocation Tagging Must Have Tagging: • Cost Center • Application or Workload • User • Expiration Date • Automation Support http://ape.gs/AWSAutoTag
  • 42. Tools for Measuring & Monitoring
  • 43. Option 1: DIY Build your own custom dashboard
  • 44. We’ve helped customers set up their own dashboards and tools. Metric Tracking Savings Spend & Metrics by Account EC2 Usage by Purchase Option
  • 45. Option 2: Use a Partner
  • 46. And Partners have been successful helping Customers monitor & manage cost
  • 47. Option 3: AWS Tools Trusted Advisor
  • 48. 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)
  • 49.
  • 50. Idle Test Instances Running in us-west-1
  • 52. Bonus - Creating a Culture of Cost Accountability People & Process
  • 53. Bridging the Gap Between Agents & Principles Finance IT CoE
  • 54. Questions your Center of Excellence Should be Asking 1. How much of our workloads are “steady state”? 2. How are we currently handling our elasticity needs? 3. Have we had a Well Architected review with AWS? 4. What’s keeping us from reserving capacity? 5. How can I be more involved in our process?
  • 55. • Aligning Incentives (Carrots & Sticks) • Automation • Reporting • Control & Governance • Metrics / KPIs Cloud Center of Excellence
  • 57. Metrics and Targets • % instances turned off daily • % of instances right-sized • % always-on resources covered by RIs • % RI utilization Define success by establishing metrics and track progress Cost-Based
  • 58. 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
  • 59. Chapter III: Getting Started (We can help)
  • 60. Where to start Set up a Cloud Competency Center Bring in the right tools Use metrics to reinforce behavior Use partners to accelerate!
  • 61. Cycle of cost optimization ✔ ✔ ✔ ✔✘ ✘ ✘ ✘ $ $ $ $ $