SlideShare ist ein Scribd-Unternehmen logo
1 von 19
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Shawn O’Connor, Solutions Architect
August 7th, 2018
Cost Optimize EC2 with Amazon EC2
Spot Instances
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
ü Fundamentals of Amazon EC2 Spot Instances
ü Spot use cases
ü Recently launched EC2 Spot features
ü Workshop
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What are EC2 Spot Instances?
Low Cost Faster Results Easy Access
Resource
Flexibility
The price changes
infrequently based on
supply and demand of
spare capacity
Just request capacity and
pay the current rate -
when we need the
capacity back you’ll get a
2 minute warning
Spare EC2 capacity with some great advantages
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Use Cases
examples
• Experiments
• Development
• Testing
• One-time queries
• Model training
Time sensitiveTime insensitive
examples
• Web services
• APIs
• Big data
• Grid computing
• Containers
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Fleet
Automates the management of Spot instances – Simply tell Spot Fleet how
much capacity you need and Fleet does the rest.
Fast Access to
Capacity
• Launch Thousands of Spot
Instances with single API call
• Maintain capacity or scale up or
down based on metrics and
thresholds you set
Optimize Price vs.
Availability
• Find the lowest priced horsepower
that works for you or diversify your
fleet to increase availability
• Auto-attach to a Load Balancer
Customize Based
on Application
• Create your own capacity unit
based on your application
requirements
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Flexibility is crucial
Instance flexible Time flexible Region flexible
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What does it mean to be instance flexible?
• m4.xlarge capacity is different from m4.large. Use as many sizes as you can
efficiently!
Instance Size
• If you’re using the c4.large, you can almost certainly use m4.large and r4.large.
They have the same number of vCPUs, just with some extra memory!
Instance Family
• Availability Zones consist of one or more discrete data centers. us-east-2a and
us-east-2b capacity is different! If your application can use multiple AZs, do it!
Availability Zone
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Understanding how to use EC2 Spot pools
Instance Flexibility and Diversification Made
Easy with Spot Fleet
0
10
20
30
40
50
60
70
2007 2012 2017
Each instance family, each instance size, in each Availability Zone, in every
Region is a separate Spot pool
100s of Instance Options
R4.8xlarge
M4.4xlarge
C5.9xlarge
C4.xlarge
C4.4xlarge
R4.2xlarge
M4.xlarge
M
4.xlarge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$0.37 $0.29$0.34
1b 1c1a
8XL
$0.18 $0.16$0.214XL
$0.13 $0.13$0.182XL
$0.05 $0.06$0.06XL
$0.01 $0.04$0.02L
R4
$2.128
On
Demand
$1.064
$0.532
$.266
$0.133
ü Each instance family
ü Each instance size
ü Each Availability Zone
ü In every region
ü Is a separate Spot pool
Show me the pools!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Think Spot for almost every workload
Big Data?
Hadoop? Spark?
Analytics? EMR?
CI/CD?
Jenkins?
Bamboo?
Stateless Web
Services? Load
testing?
HPC / HTC?
Batch workloads?
Containers?
Kubernetes?
ECS?
Machine
Learning? Deep
Learning? AI?
Rendering?
Media streaming?
Transcoding?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get your applications ready for Spot
Fault tolerantStateless Multi-AZ
Loosely
coupled
Instance
flexibility
¢
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Integrated with AWS services
AWS
CloudFormation
AWS
OpsWorks
Amazon
EMR
Amazon
ECS / EKS
AWS Data
Pipeline
AWS BatchAuto Scaling
Thinkbox Deadline
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Integrated in Community and Partners
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Simplified access
Via existing EC2 API calls
such as RunInstances
Simplified Pricing
Set it & Forget it
Low predictable prices
without bidding
Pause & Resume
With hibernation and
stop-start options
Simplified access model, predictable prices, pause & resume
What’s new with EC2 Spot?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Worried about interruptions? Don’t be.
Over the last 3 months, > 95% of Spot Instance interruptions
were from a customer manually terminating the instance
because the application had completed its work.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Interruptions explained, part 1
Interruption
Max price
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Interruptions explained, part 2
Max price
Potential interruption if capacity
needs to be returned to On-Demand
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank You and let’s get started!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Spot Fleet web app workshop
ü There is no need to rush – finish the workshop in your own time
and at your own pace
ü Find someone to work with
ü Apply the credits after the workshop here:
ü https://aws.amazon.com/awscredits/
ü Go here to get started!
ü http://bit.ly/2toTDuW
ü Connect with me and let me know how the workshop went!
ü https://www.linkedin.com/in/oak2278/

Weitere ähnliche Inhalte

Was ist angesagt?

Amazon EC2 Spot- AWS Container Day 2019 Barcelona
Amazon EC2 Spot- AWS Container Day 2019 BarcelonaAmazon EC2 Spot- AWS Container Day 2019 Barcelona
Amazon EC2 Spot- AWS Container Day 2019 BarcelonaAmazon Web Services
 
Easy and Efficient Batch Computing on AWS
Easy and Efficient Batch Computing on AWSEasy and Efficient Batch Computing on AWS
Easy and Efficient Batch Computing on AWSAmazon Web Services
 
EC2 Foundations Autoscaling - The tip of the cost optimisation iceberg
EC2 Foundations Autoscaling - The tip of the cost optimisation icebergEC2 Foundations Autoscaling - The tip of the cost optimisation iceberg
EC2 Foundations Autoscaling - The tip of the cost optimisation icebergAmazon Web Services
 
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...Cobus Bernard
 
Overview of AWS Ground Station
Overview of AWS Ground StationOverview of AWS Ground Station
Overview of AWS Ground StationAWS Daily News
 
High Performance Computing on AWS
High Performance Computing on AWSHigh Performance Computing on AWS
High Performance Computing on AWSAmazon Web Services
 
Batchly - Automated AWS Cost Reduction
Batchly - Automated AWS Cost ReductionBatchly - Automated AWS Cost Reduction
Batchly - Automated AWS Cost ReductionCMPUTE
 
Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...
Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...
Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...Amazon Web Services
 
AWS EMEA Online Summit - Live coding with containers
AWS EMEA Online Summit - Live coding with containersAWS EMEA Online Summit - Live coding with containers
AWS EMEA Online Summit - Live coding with containersCobus Bernard
 
High Performance Computing Grid on AWS
High Performance Computing Grid on AWSHigh Performance Computing Grid on AWS
High Performance Computing Grid on AWSAmazon Web Services
 
(ISM402) Cost Optimization at Scale
(ISM402) Cost Optimization at Scale(ISM402) Cost Optimization at Scale
(ISM402) Cost Optimization at ScaleAmazon Web Services
 
Simple Cloud with Amazon Lightsail
Simple Cloud with Amazon LightsailSimple Cloud with Amazon Lightsail
Simple Cloud with Amazon LightsailAmazon Web Services
 
Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...
Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...
Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...Edureka!
 
Build your own log analytics solution on AWS - ADB301 - Atlanta AWS Summit
Build your own log analytics solution on AWS - ADB301 - Atlanta AWS SummitBuild your own log analytics solution on AWS - ADB301 - Atlanta AWS Summit
Build your own log analytics solution on AWS - ADB301 - Atlanta AWS SummitAmazon Web Services
 
Aws re invent 2018 recap
Aws re invent 2018 recapAws re invent 2018 recap
Aws re invent 2018 recapCloudHesive
 
Mini conf 20-jan-18 delhi
Mini conf   20-jan-18 delhiMini conf   20-jan-18 delhi
Mini conf 20-jan-18 delhiAlbert Anthony
 
AWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is Different
AWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is DifferentAWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is Different
AWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is DifferentAmazon Web Services
 

Was ist angesagt? (20)

Amazon EC2 Spot- AWS Container Day 2019 Barcelona
Amazon EC2 Spot- AWS Container Day 2019 BarcelonaAmazon EC2 Spot- AWS Container Day 2019 Barcelona
Amazon EC2 Spot- AWS Container Day 2019 Barcelona
 
Amazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances WorkshopAmazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances Workshop
 
Easy and Efficient Batch Computing on AWS
Easy and Efficient Batch Computing on AWSEasy and Efficient Batch Computing on AWS
Easy and Efficient Batch Computing on AWS
 
EC2 Foundations Autoscaling - The tip of the cost optimisation iceberg
EC2 Foundations Autoscaling - The tip of the cost optimisation icebergEC2 Foundations Autoscaling - The tip of the cost optimisation iceberg
EC2 Foundations Autoscaling - The tip of the cost optimisation iceberg
 
Running Kubernetes on AWS
Running Kubernetes on AWSRunning Kubernetes on AWS
Running Kubernetes on AWS
 
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
 
Overview of AWS Ground Station
Overview of AWS Ground StationOverview of AWS Ground Station
Overview of AWS Ground Station
 
High Performance Computing on AWS
High Performance Computing on AWSHigh Performance Computing on AWS
High Performance Computing on AWS
 
Batchly - Automated AWS Cost Reduction
Batchly - Automated AWS Cost ReductionBatchly - Automated AWS Cost Reduction
Batchly - Automated AWS Cost Reduction
 
Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...
Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...
Best practices for Running Spark jobs on Amazon EMR with Spot Instances | AWS...
 
AWS EMEA Online Summit - Live coding with containers
AWS EMEA Online Summit - Live coding with containersAWS EMEA Online Summit - Live coding with containers
AWS EMEA Online Summit - Live coding with containers
 
High Performance Computing Grid on AWS
High Performance Computing Grid on AWSHigh Performance Computing Grid on AWS
High Performance Computing Grid on AWS
 
(ISM402) Cost Optimization at Scale
(ISM402) Cost Optimization at Scale(ISM402) Cost Optimization at Scale
(ISM402) Cost Optimization at Scale
 
Simple Cloud with Amazon Lightsail
Simple Cloud with Amazon LightsailSimple Cloud with Amazon Lightsail
Simple Cloud with Amazon Lightsail
 
Cost Optimisation
Cost OptimisationCost Optimisation
Cost Optimisation
 
Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...
Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...
Top 10 Reasons to Learn AWS | Why AWS? | AWS Tutorial for Beginners | AWS Tra...
 
Build your own log analytics solution on AWS - ADB301 - Atlanta AWS Summit
Build your own log analytics solution on AWS - ADB301 - Atlanta AWS SummitBuild your own log analytics solution on AWS - ADB301 - Atlanta AWS Summit
Build your own log analytics solution on AWS - ADB301 - Atlanta AWS Summit
 
Aws re invent 2018 recap
Aws re invent 2018 recapAws re invent 2018 recap
Aws re invent 2018 recap
 
Mini conf 20-jan-18 delhi
Mini conf   20-jan-18 delhiMini conf   20-jan-18 delhi
Mini conf 20-jan-18 delhi
 
AWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is Different
AWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is DifferentAWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is Different
AWS Summit Sydney 2014 | Why Scale Matters and How the Cloud Really is Different
 

Ähnlich wie AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances

Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018
Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018
Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018Amazon Web Services
 
Optimize Amazon EC2 for Fun and Profit
Optimize Amazon EC2 for Fun and Profit Optimize Amazon EC2 for Fun and Profit
Optimize Amazon EC2 for Fun and Profit Amazon Web Services
 
Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...
Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...
Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...Amazon Web Services
 
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28Amazon Web Services
 
SRV203 Optimizing Amazon EC2 for Fun and Profit
 SRV203 Optimizing Amazon EC2 for Fun and Profit SRV203 Optimizing Amazon EC2 for Fun and Profit
SRV203 Optimizing Amazon EC2 for Fun and ProfitAmazon Web Services
 
Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...
Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...
Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...Amazon Web Services
 
Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...
Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...
Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...Amazon Web Services
 
Cost optimisation as a by-product of awesome practice and agility at Trainline
Cost optimisation as a by-product of awesome practice and agility at TrainlineCost optimisation as a by-product of awesome practice and agility at Trainline
Cost optimisation as a by-product of awesome practice and agility at TrainlineAmazon Web Services
 
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)Amazon Web Services
 
Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...
Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...
Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...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 SummitAmazon Web Services
 
Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...
Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...
Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...Amazon Web Services
 
Run Production Workloads on Spot, Save up to 90%
Run Production Workloads on Spot, Save up to 90%Run Production Workloads on Spot, Save up to 90%
Run Production Workloads on Spot, Save up to 90%Amazon Web Services
 
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...Amazon Web Services
 
Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...
Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...
Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...Amazon Web Services
 
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018Amazon Web Services
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Amazon Web Services
 
Amazon EC2 Strategie per l'ottimizzazione dei costi
Amazon EC2 Strategie per l'ottimizzazione dei costiAmazon EC2 Strategie per l'ottimizzazione dei costi
Amazon EC2 Strategie per l'ottimizzazione dei costiAmazon Web Services
 

Ähnlich wie AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances (20)

Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018
Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018
Running Amazon EC2 Workloads at Scale (CMP402-R1) - AWS re:Invent 2018
 
Optimize Amazon EC2 for Fun and Profit
Optimize Amazon EC2 for Fun and Profit Optimize Amazon EC2 for Fun and Profit
Optimize Amazon EC2 for Fun and Profit
 
Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...
Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...
Better, Faster, Cheaper – Cost Optimizing Compute with Amazon EC2 Fleet #savi...
 
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
 
SRV203 Optimizing Amazon EC2 for Fun and Profit
 SRV203 Optimizing Amazon EC2 for Fun and Profit SRV203 Optimizing Amazon EC2 for Fun and Profit
SRV203 Optimizing Amazon EC2 for Fun and Profit
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
 
Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...
Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...
Building High-Scale Web Apps on Amazon EC2 Fleet (CMP409-R1) - AWS re:Invent ...
 
Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...
Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...
Running Enterprise Test/Dev on Amazon EC2 Spot Instances (CMP407-R1) - AWS re...
 
Cost optimisation as a by-product of awesome practice and agility at Trainline
Cost optimisation as a by-product of awesome practice and agility at TrainlineCost optimisation as a by-product of awesome practice and agility at Trainline
Cost optimisation as a by-product of awesome practice and agility at Trainline
 
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
 
Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...
Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...
Use Auto Scaling, Spot Pricing, and More Expert Strategies (ANT347) - AWS re:...
 
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
 
Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...
Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...
Lower Costs on Amazon EMR: Auto Scaling, Spot Pricing, & Expert Strategies (A...
 
Run Production Workloads on Spot, Save up to 90%
Run Production Workloads on Spot, Save up to 90%Run Production Workloads on Spot, Save up to 90%
Run Production Workloads on Spot, Save up to 90%
 
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
 
Cloud Economics - TCO 101
Cloud Economics - TCO 101Cloud Economics - TCO 101
Cloud Economics - TCO 101
 
Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...
Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...
Optimizing Application Performance and Costs with Auto Scaling - AWS Online T...
 
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
 
Amazon EC2 Strategie per l'ottimizzazione dei costi
Amazon EC2 Strategie per l'ottimizzazione dei costiAmazon EC2 Strategie per l'ottimizzazione dei costi
Amazon EC2 Strategie per l'ottimizzazione dei costi
 

Mehr von 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
 

Mehr von 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 Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shawn O’Connor, Solutions Architect August 7th, 2018 Cost Optimize EC2 with Amazon EC2 Spot Instances
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Agenda ü Fundamentals of Amazon EC2 Spot Instances ü Spot use cases ü Recently launched EC2 Spot features ü Workshop
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What are EC2 Spot Instances? Low Cost Faster Results Easy Access Resource Flexibility The price changes infrequently based on supply and demand of spare capacity Just request capacity and pay the current rate - when we need the capacity back you’ll get a 2 minute warning Spare EC2 capacity with some great advantages
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Use Cases examples • Experiments • Development • Testing • One-time queries • Model training Time sensitiveTime insensitive examples • Web services • APIs • Big data • Grid computing • Containers
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Fleet Automates the management of Spot instances – Simply tell Spot Fleet how much capacity you need and Fleet does the rest. Fast Access to Capacity • Launch Thousands of Spot Instances with single API call • Maintain capacity or scale up or down based on metrics and thresholds you set Optimize Price vs. Availability • Find the lowest priced horsepower that works for you or diversify your fleet to increase availability • Auto-attach to a Load Balancer Customize Based on Application • Create your own capacity unit based on your application requirements
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Flexibility is crucial Instance flexible Time flexible Region flexible
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What does it mean to be instance flexible? • m4.xlarge capacity is different from m4.large. Use as many sizes as you can efficiently! Instance Size • If you’re using the c4.large, you can almost certainly use m4.large and r4.large. They have the same number of vCPUs, just with some extra memory! Instance Family • Availability Zones consist of one or more discrete data centers. us-east-2a and us-east-2b capacity is different! If your application can use multiple AZs, do it! Availability Zone
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Understanding how to use EC2 Spot pools Instance Flexibility and Diversification Made Easy with Spot Fleet 0 10 20 30 40 50 60 70 2007 2012 2017 Each instance family, each instance size, in each Availability Zone, in every Region is a separate Spot pool 100s of Instance Options R4.8xlarge M4.4xlarge C5.9xlarge C4.xlarge C4.4xlarge R4.2xlarge M4.xlarge M 4.xlarge
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.37 $0.29$0.34 1b 1c1a 8XL $0.18 $0.16$0.214XL $0.13 $0.13$0.182XL $0.05 $0.06$0.06XL $0.01 $0.04$0.02L R4 $2.128 On Demand $1.064 $0.532 $.266 $0.133 ü Each instance family ü Each instance size ü Each Availability Zone ü In every region ü Is a separate Spot pool Show me the pools!
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Think Spot for almost every workload Big Data? Hadoop? Spark? Analytics? EMR? CI/CD? Jenkins? Bamboo? Stateless Web Services? Load testing? HPC / HTC? Batch workloads? Containers? Kubernetes? ECS? Machine Learning? Deep Learning? AI? Rendering? Media streaming? Transcoding?
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get your applications ready for Spot Fault tolerantStateless Multi-AZ Loosely coupled Instance flexibility ¢
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Integrated with AWS services AWS CloudFormation AWS OpsWorks Amazon EMR Amazon ECS / EKS AWS Data Pipeline AWS BatchAuto Scaling Thinkbox Deadline
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Integrated in Community and Partners
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Simplified access Via existing EC2 API calls such as RunInstances Simplified Pricing Set it & Forget it Low predictable prices without bidding Pause & Resume With hibernation and stop-start options Simplified access model, predictable prices, pause & resume What’s new with EC2 Spot?
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Worried about interruptions? Don’t be. Over the last 3 months, > 95% of Spot Instance interruptions were from a customer manually terminating the instance because the application had completed its work.
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Interruptions explained, part 1 Interruption Max price
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Interruptions explained, part 2 Max price Potential interruption if capacity needs to be returned to On-Demand
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank You and let’s get started!
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Spot Fleet web app workshop ü There is no need to rush – finish the workshop in your own time and at your own pace ü Find someone to work with ü Apply the credits after the workshop here: ü https://aws.amazon.com/awscredits/ ü Go here to get started! ü http://bit.ly/2toTDuW ü Connect with me and let me know how the workshop went! ü https://www.linkedin.com/in/oak2278/