SlideShare a Scribd company logo
1 of 39
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Chad Schmutzer, Solutions Architect – EC2 Spot
Instances
December 5th, 2017
Run Your HPC Workload at
Scale for a Fraction of the Cost
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Are We Going to Do Today?
â€Ē Learn about Amazon EC2 Spot Instances
â€Ē Learn about EC2 Spot Instances best practices
â€Ē Understand tools for powering your HPC workloads with
EC2 Spot Instances
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
On-Demand
Pay for compute
capacity by the hour
with no long-term
commitments
For spiky workloads,
or to define needs
AWS EC2 Consumption Models
Reserved
Make a low, one-time
payment and receive
a significant discount
on the hourly charge
For committed
utilization
Spot Market
Access unused
capacity, charged at a
Spot Price which slowly
fluctuates based on
supply and demand
For time-insensitive,
transient, or stateless
workloads
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spare Capacity at Scale
AWS has over a million active
customers in 190 countries,
supporting virtually any
workload.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spare Capacity at Scale
AWS has over a million active
customers in 190 countries,
supporting virtually any
workload.
In other words, there is more
than enough for everyone.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Are EC2 Spot Instances?
EC2 Spot Instances are
spare EC2 On-Demand capacity
with very simple rulesâ€Ķ
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Are EC2 Spot Instances?
EC2 Spot Instances are
spare EC2 On-Demand capacity
with very simple rulesâ€Ķ
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Very Simple Rules of Spot
Instances
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Very Simple Rules of Spot Instances
Run in markets where the
price of compute slowly
changes based on supply
and demand.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Very Simple Rules of Spot Instances
Run in markets where the price of
compute changes based on supply
and demand.
You control your spend. When the
market exceeds what you are
willing to pay, you get 2 minutes to
wrap up your work.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get the Best Value for EC2 Capacity
Since Spot Instances typically cost 50-90% less than On-
Demand, you can:
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get the Best Value for EC2 Capacity
Since Spot Instances typically cost 50-90% less than On-
Demand, you can:
â€Ē Increase your compute capacity by 2-10x within the same
budget
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get the Best Value for EC2 Capacity
Since Spot Instances typically cost 50-90% less than On-
Demand, you can:
â€Ē Increase your compute capacity by 2-10x within the same
budget
â€Ē Save 50-90% on your existing workload
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get the Best Value for EC2 Capacity
Since Spot Instances typically cost 50-90% less than On-
Demand, you can:
â€Ē Increase your compute capacity by 2-10x within the same
budget
â€Ē Save 50-90% on your existing workload
â€Ē Or both!
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get the Best Value for EC2 Capacity
Since Spot Instances typically cost 50-90% less than On-
Demand, you can:
â€Ē Increase your compute capacity by 2-10x within the same
budget
â€Ē Save 50-90% on your existing workload
â€Ē Or both!
Either way, you should try it!
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Understanding EC2 Capacity
AZ1
AZ2
(N. California) Total Capacity
P3 C4 M4 I3 R4 D2
Shared
Dedicated
Shared
Dedicated
x 2x 4x x 2x 4x x 2x 4x x 2x 4x x 2x 4x x 2x 4x
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
So just how much spare
capacity is there?
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Understanding EC2 Capacity
â€Ē On average, every week, AWS customers are using more compute
capacity on Amazon EC2 Spot Instances than customers in 2012
were running across all of Amazon EC2.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Understanding EC2 Capacity
â€Ē On average, every week, AWS customers are using more compute
capacity on Amazon EC2 Spot Instances than customers in 2012
were running across all of Amazon EC2.
â€Ē A group of researchers from Clemson University achieved a
remarkable milestone while studying topic modeling, breaking the
record for creating the largest high-performance cluster in the cloud
by using more than 1,100,000 vCPUs on Amazon EC2 Spot
Instances running in a single AWS region.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1,119,196 vCPUs
http://amzn.to/2wmYkWm
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1,119,196 vCPUs
http://amzn.to/2wmYkWm
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$0.27 $0.29$0.50
2b 2c2a
8XL
$0.30 $0.16$0.214XL
$0.07 $0.08$0.082XL
$0.05 $0.04$0.04XL
$0.01 $0.04$0.01L
C4
$1.76
On-
Demand
$0.88
$0.44
$0.22
$0.11
Capacity and Spot Markets Recap
â€Ē Each instance family
us-east-2
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$0.27 $0.29$0.50
2b 2c2a
8XL
$0.30 $0.16$0.214XL
$0.07 $0.08$0.082XL
$0.05 $0.04$0.04XL
$0.01 $0.04$0.01L
C4
$1.76
On-
Demand
$0.88
$0.44
$0.22
$0.11
Capacity and Spot Markets Recap
â€Ē Each instance family
â€Ē Each instance size
us-east-2
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$0.27 $0.29$0.50
2b 2c2a
8XL
$0.30 $0.16$0.214XL
$0.07 $0.08$0.082XL
$0.05 $0.04$0.04XL
$0.01 $0.04$0.01L
C4
$1.76
On-
Demand
$0.88
$0.44
$0.22
$0.11
Capacity and Spot Markets Recap
â€Ē Each instance family
â€Ē Each instance size
â€Ē In each Availability Zone
us-east-2
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$0.27 $0.29$0.50
2b 2c2a
8XL
$0.30 $0.16$0.214XL
$0.07 $0.08$0.082XL
$0.05 $0.04$0.04XL
$0.01 $0.04$0.01L
C4
$1.76
On-
Demand
$0.88
$0.44
$0.22
$0.11
Capacity and Spot Markets Recap
â€Ē Each instance family
â€Ē Each instance size
â€Ē In each Availability Zone
â€Ē In every Region
us-east-2
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$0.27 $0.29$0.50
2b 2c2a
8XL
$0.30 $0.16$0.214XL
$0.07 $0.08$0.082XL
$0.05 $0.04$0.04XL
$0.01 $0.04$0.01L
C4
$1.76
On-
Demand
$0.88
$0.44
$0.22
$0.11
Capacity and Spot Markets Recap
â€Ē Each instance family
â€Ē Each instance size
â€Ē In each Availability Zone
â€Ē In every Region
â€Ē Is a separate pool of
capacity and therefore a
separate Spot Market
us-east-2
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Instance Pricing
â€Ē With Spot instances,
you will never be
charged more than
the maximum price
you specified.
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Instance Pricing
â€Ē With Spot instances,
you will never be
charged more than
the maximum price
you specified.
â€Ē While your instance
runs, you are
charged the Spot
price that is in effect
for that period.
You pay the
market
price
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Instance Best Practices - Flexibility
Fault toleranceStateless Multi-AZ
Loosely
coupled
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Instance Best Practices - Flexibility
Fault toleranceStateless Multi-AZ
Loosely
coupled
Instance
Flexibility
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Instance Best Practices - Diversification
â€Ē Multiple instance types selected
â€Ē Multiple Availability Zones selected
â€Ē Pick instance types with similar performance
characteristics. For example: c4.large, r4.large, m4.large
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Using a single
additional parameter
Run continuously
for up to 6 hours
Save up to 50% off
On-Demand pricing
EC2 Spot Blocks - Defined Duration
$1
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Spot Fleet
A single API call to help youâ€Ķ
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Fleet Helps Youâ€Ķ
Launch Thousands of Spot Instances
with one RequestSpotFleet API call
Get Best Price
Find the lowest priced horsepower that works for you
or
Get Diversified Resources
Diversify your fleet – increase your availability
Apply Custom Weighting
Create your own capacity unit based on your application
needs
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Fleet Helps Youâ€Ķ
Maintain Target Capacity
Take Advantage of Automatic Scaling
Tagging, Health Checks, CloudWatch
Metrics
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Types of Workloads Are Customers Running
on Spot Instances?
â€Ē Queue and Batch based processing
â€Ē High Performance Computing
â€Ē Hadoop / Spark / Big Data workloads (EMR)
â€Ē Stateless Applications (e.g. web tiers)
â€Ē CI/CD Pipelines
â€Ē Containerized workloads powered by Spot Fleet
â€Ē Live / Video On-Demand Streaming Content
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Types of Workloads Are Customers Running
on Spot Instances?
â€Ē Queue and Batch based processing
â€Ē High Performance Computing
â€Ē Hadoop / Spark / Big Data workloads (EMR)
â€Ē Stateless Applications (e.g. web tiers)
â€Ē CI/CD Pipelines
â€Ē Containerized workloads powered by Spot Fleet
â€Ē Live / Video On-Demand Streaming Content
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demo
â€Ē CfnCluster
â€Ē AWS Batch
ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://aws.amazon.com/ec2/spot/
https://github.com/awslabs/ec2-spot-labs
https://wiki.jenkins.io/display/JENKINS/Amazon+EC2+Fleet+Plugin
Thank You!

More Related Content

What's hot

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
 

What's hot (20)

GPSBUS220-Refactor and Replatform .NET Apps to Use the Latest Microsoft SQL S...
GPSBUS220-Refactor and Replatform .NET Apps to Use the Latest Microsoft SQL S...GPSBUS220-Refactor and Replatform .NET Apps to Use the Latest Microsoft SQL S...
GPSBUS220-Refactor and Replatform .NET Apps to Use the Latest Microsoft SQL S...
 
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
 
ATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing OperationsATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing Operations
 
Building Best Practices and the Right Foundation for your 1st Production Work...
Building Best Practices and the Right Foundation for your 1st Production Work...Building Best Practices and the Right Foundation for your 1st Production Work...
Building Best Practices and the Right Foundation for your 1st Production Work...
 
Deploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
Deploying Business Analytics at Enterprise Scale - AWS Online Tech TalksDeploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
Deploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
 
透過Spot instances, Containers & Serverlessé™ä―ŽæˆæœŽ
透過Spot instances, Containers & Serverlessé™ä―ŽæˆæœŽé€éŽSpot instances, Containers & Serverlessé™ä―ŽæˆæœŽ
透過Spot instances, Containers & Serverlessé™ä―ŽæˆæœŽ
 
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
 
User Based Multi Channel Engagement using Amazon Pinpoint and Amazon Cognito ...
User Based Multi Channel Engagement using Amazon Pinpoint and Amazon Cognito ...User Based Multi Channel Engagement using Amazon Pinpoint and Amazon Cognito ...
User Based Multi Channel Engagement using Amazon Pinpoint and Amazon Cognito ...
 
DEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSDEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWS
 
CTD403_Supercharge Your Websites with the Power of Lambda@Edge
CTD403_Supercharge Your Websites with the Power of Lambda@EdgeCTD403_Supercharge Your Websites with the Power of Lambda@Edge
CTD403_Supercharge Your Websites with the Power of Lambda@Edge
 
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
 
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
 
Migrating Your Databases to AWS – Tools and Services (Level 100)
Migrating Your Databases to AWS – Tools and Services (Level 100)Migrating Your Databases to AWS – Tools and Services (Level 100)
Migrating Your Databases to AWS – Tools and Services (Level 100)
 
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
 
DAT341_Working with Amazon ElastiCache for Redis
DAT341_Working with Amazon ElastiCache for RedisDAT341_Working with Amazon ElastiCache for Redis
DAT341_Working with Amazon ElastiCache for Redis
 
MSC204_Leverage AWS Marketplace to accelerate production ready workloads
MSC204_Leverage AWS Marketplace to accelerate production ready workloadsMSC204_Leverage AWS Marketplace to accelerate production ready workloads
MSC204_Leverage AWS Marketplace to accelerate production ready workloads
 
DAT203_Running MySQL Databases on AWS
DAT203_Running MySQL Databases on AWSDAT203_Running MySQL Databases on AWS
DAT203_Running MySQL Databases on AWS
 
ARC319_Multi-Region Active-Active Architecture
ARC319_Multi-Region Active-Active ArchitectureARC319_Multi-Region Active-Active Architecture
ARC319_Multi-Region Active-Active Architecture
 
Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017
Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017
Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017
 

Similar to Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech Talks

AWS Cost Optimisation Solutions
AWS Cost Optimisation SolutionsAWS Cost Optimisation Solutions
AWS Cost Optimisation Solutions
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
 

Similar to Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech Talks (20)

Webinar | How TLG Aerospace Saved 75% with Amazon EC2 Spot Instances
Webinar | How TLG Aerospace Saved 75% with  Amazon EC2 Spot InstancesWebinar | How TLG Aerospace Saved 75% with  Amazon EC2 Spot Instances
Webinar | How TLG Aerospace Saved 75% with Amazon EC2 Spot Instances
 
Introducing the New Simplified Access Model for EC2 Spot Instances - AWS Onli...
Introducing the New Simplified Access Model for EC2 Spot Instances - AWS Onli...Introducing the New Simplified Access Model for EC2 Spot Instances - AWS Onli...
Introducing the New Simplified Access Model for EC2 Spot Instances - AWS Onli...
 
AWS Learning Webinar Spot Instances Benefits & Best Practices Explained
AWS Learning Webinar Spot Instances Benefits & Best Practices ExplainedAWS Learning Webinar Spot Instances Benefits & Best Practices Explained
AWS Learning Webinar Spot Instances Benefits & Best Practices Explained
 
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...
 
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
 
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
 
Save up to 90% and Run Production Workloads on Spot - CMP307 - re:Invent 2017
Save up to 90% and Run Production Workloads on Spot - CMP307 - re:Invent 2017Save up to 90% and Run Production Workloads on Spot - CMP307 - re:Invent 2017
Save up to 90% and Run Production Workloads on Spot - CMP307 - re:Invent 2017
 
CMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot Fleet
CMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot FleetCMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot Fleet
CMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot Fleet
 
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWSAWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
 
AWS Cost Optimisation Solutions
AWS Cost Optimisation SolutionsAWS Cost Optimisation Solutions
AWS Cost Optimisation Solutions
 
Cost Optimization in AWS
Cost Optimization in AWSCost Optimization in AWS
Cost Optimization in AWS
 
Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS
 
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
 
AWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices WebinarAWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices Webinar
 
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
 
Born in the Cloud, Built like a Startup
Born in the Cloud, Built like a StartupBorn in the Cloud, Built like a Startup
Born in the Cloud, Built like a Startup
 
ARC329_Optimizing Performance and Efficiency for Amazon EC2 and More with Tur...
ARC329_Optimizing Performance and Efficiency for Amazon EC2 and More with Tur...ARC329_Optimizing Performance and Efficiency for Amazon EC2 and More with Tur...
ARC329_Optimizing Performance and Efficiency for Amazon EC2 and More with Tur...
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
 
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
 

More from 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

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
 

Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech Talks

  • 1. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Chad Schmutzer, Solutions Architect – EC2 Spot Instances December 5th, 2017 Run Your HPC Workload at Scale for a Fraction of the Cost
  • 2. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Are We Going to Do Today? â€Ē Learn about Amazon EC2 Spot Instances â€Ē Learn about EC2 Spot Instances best practices â€Ē Understand tools for powering your HPC workloads with EC2 Spot Instances
  • 3. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. On-Demand Pay for compute capacity by the hour with no long-term commitments For spiky workloads, or to define needs AWS EC2 Consumption Models Reserved Make a low, one-time payment and receive a significant discount on the hourly charge For committed utilization Spot Market Access unused capacity, charged at a Spot Price which slowly fluctuates based on supply and demand For time-insensitive, transient, or stateless workloads
  • 4. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spare Capacity at Scale AWS has over a million active customers in 190 countries, supporting virtually any workload.
  • 5. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spare Capacity at Scale AWS has over a million active customers in 190 countries, supporting virtually any workload. In other words, there is more than enough for everyone.
  • 6. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Are EC2 Spot Instances? EC2 Spot Instances are spare EC2 On-Demand capacity with very simple rulesâ€Ķ
  • 7. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Are EC2 Spot Instances? EC2 Spot Instances are spare EC2 On-Demand capacity with very simple rulesâ€Ķ
  • 8. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Very Simple Rules of Spot Instances
  • 9. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Very Simple Rules of Spot Instances Run in markets where the price of compute slowly changes based on supply and demand.
  • 10. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Very Simple Rules of Spot Instances Run in markets where the price of compute changes based on supply and demand. You control your spend. When the market exceeds what you are willing to pay, you get 2 minutes to wrap up your work.
  • 11. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get the Best Value for EC2 Capacity Since Spot Instances typically cost 50-90% less than On- Demand, you can:
  • 12. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get the Best Value for EC2 Capacity Since Spot Instances typically cost 50-90% less than On- Demand, you can: â€Ē Increase your compute capacity by 2-10x within the same budget
  • 13. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get the Best Value for EC2 Capacity Since Spot Instances typically cost 50-90% less than On- Demand, you can: â€Ē Increase your compute capacity by 2-10x within the same budget â€Ē Save 50-90% on your existing workload
  • 14. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get the Best Value for EC2 Capacity Since Spot Instances typically cost 50-90% less than On- Demand, you can: â€Ē Increase your compute capacity by 2-10x within the same budget â€Ē Save 50-90% on your existing workload â€Ē Or both!
  • 15. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get the Best Value for EC2 Capacity Since Spot Instances typically cost 50-90% less than On- Demand, you can: â€Ē Increase your compute capacity by 2-10x within the same budget â€Ē Save 50-90% on your existing workload â€Ē Or both! Either way, you should try it!
  • 16. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Understanding EC2 Capacity AZ1 AZ2 (N. California) Total Capacity P3 C4 M4 I3 R4 D2 Shared Dedicated Shared Dedicated x 2x 4x x 2x 4x x 2x 4x x 2x 4x x 2x 4x x 2x 4x
  • 17. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. So just how much spare capacity is there?
  • 18. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Understanding EC2 Capacity â€Ē On average, every week, AWS customers are using more compute capacity on Amazon EC2 Spot Instances than customers in 2012 were running across all of Amazon EC2.
  • 19. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Understanding EC2 Capacity â€Ē On average, every week, AWS customers are using more compute capacity on Amazon EC2 Spot Instances than customers in 2012 were running across all of Amazon EC2. â€Ē A group of researchers from Clemson University achieved a remarkable milestone while studying topic modeling, breaking the record for creating the largest high-performance cluster in the cloud by using more than 1,100,000 vCPUs on Amazon EC2 Spot Instances running in a single AWS region.
  • 20. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 1,119,196 vCPUs http://amzn.to/2wmYkWm
  • 21. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 1,119,196 vCPUs http://amzn.to/2wmYkWm
  • 22. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.27 $0.29$0.50 2b 2c2a 8XL $0.30 $0.16$0.214XL $0.07 $0.08$0.082XL $0.05 $0.04$0.04XL $0.01 $0.04$0.01L C4 $1.76 On- Demand $0.88 $0.44 $0.22 $0.11 Capacity and Spot Markets Recap â€Ē Each instance family us-east-2
  • 23. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.27 $0.29$0.50 2b 2c2a 8XL $0.30 $0.16$0.214XL $0.07 $0.08$0.082XL $0.05 $0.04$0.04XL $0.01 $0.04$0.01L C4 $1.76 On- Demand $0.88 $0.44 $0.22 $0.11 Capacity and Spot Markets Recap â€Ē Each instance family â€Ē Each instance size us-east-2
  • 24. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.27 $0.29$0.50 2b 2c2a 8XL $0.30 $0.16$0.214XL $0.07 $0.08$0.082XL $0.05 $0.04$0.04XL $0.01 $0.04$0.01L C4 $1.76 On- Demand $0.88 $0.44 $0.22 $0.11 Capacity and Spot Markets Recap â€Ē Each instance family â€Ē Each instance size â€Ē In each Availability Zone us-east-2
  • 25. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.27 $0.29$0.50 2b 2c2a 8XL $0.30 $0.16$0.214XL $0.07 $0.08$0.082XL $0.05 $0.04$0.04XL $0.01 $0.04$0.01L C4 $1.76 On- Demand $0.88 $0.44 $0.22 $0.11 Capacity and Spot Markets Recap â€Ē Each instance family â€Ē Each instance size â€Ē In each Availability Zone â€Ē In every Region us-east-2
  • 26. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.27 $0.29$0.50 2b 2c2a 8XL $0.30 $0.16$0.214XL $0.07 $0.08$0.082XL $0.05 $0.04$0.04XL $0.01 $0.04$0.01L C4 $1.76 On- Demand $0.88 $0.44 $0.22 $0.11 Capacity and Spot Markets Recap â€Ē Each instance family â€Ē Each instance size â€Ē In each Availability Zone â€Ē In every Region â€Ē Is a separate pool of capacity and therefore a separate Spot Market us-east-2
  • 27. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Instance Pricing â€Ē With Spot instances, you will never be charged more than the maximum price you specified.
  • 28. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Instance Pricing â€Ē With Spot instances, you will never be charged more than the maximum price you specified. â€Ē While your instance runs, you are charged the Spot price that is in effect for that period. You pay the market price
  • 29. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Instance Best Practices - Flexibility Fault toleranceStateless Multi-AZ Loosely coupled
  • 30. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Instance Best Practices - Flexibility Fault toleranceStateless Multi-AZ Loosely coupled Instance Flexibility
  • 31. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Instance Best Practices - Diversification â€Ē Multiple instance types selected â€Ē Multiple Availability Zones selected â€Ē Pick instance types with similar performance characteristics. For example: c4.large, r4.large, m4.large
  • 32. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Using a single additional parameter Run continuously for up to 6 hours Save up to 50% off On-Demand pricing EC2 Spot Blocks - Defined Duration $1
  • 33. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot Fleet A single API call to help youâ€Ķ
  • 34. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Fleet Helps Youâ€Ķ Launch Thousands of Spot Instances with one RequestSpotFleet API call Get Best Price Find the lowest priced horsepower that works for you or Get Diversified Resources Diversify your fleet – increase your availability Apply Custom Weighting Create your own capacity unit based on your application needs
  • 35. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Fleet Helps Youâ€Ķ Maintain Target Capacity Take Advantage of Automatic Scaling Tagging, Health Checks, CloudWatch Metrics
  • 36. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Types of Workloads Are Customers Running on Spot Instances? â€Ē Queue and Batch based processing â€Ē High Performance Computing â€Ē Hadoop / Spark / Big Data workloads (EMR) â€Ē Stateless Applications (e.g. web tiers) â€Ē CI/CD Pipelines â€Ē Containerized workloads powered by Spot Fleet â€Ē Live / Video On-Demand Streaming Content
  • 37. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Types of Workloads Are Customers Running on Spot Instances? â€Ē Queue and Batch based processing â€Ē High Performance Computing â€Ē Hadoop / Spark / Big Data workloads (EMR) â€Ē Stateless Applications (e.g. web tiers) â€Ē CI/CD Pipelines â€Ē Containerized workloads powered by Spot Fleet â€Ē Live / Video On-Demand Streaming Content
  • 38. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Demo â€Ē CfnCluster â€Ē AWS Batch
  • 39. ÂĐ 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://aws.amazon.com/ec2/spot/ https://github.com/awslabs/ec2-spot-labs https://wiki.jenkins.io/display/JENKINS/Amazon+EC2+Fleet+Plugin Thank You!