SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Save up to 90% using multiple
purchase options in Amazon EC2
Auto Scaling
Susanna Ng
Senior Software Development Engineer
AWS, EC2 Auto Scaling
C M P 3 9 0
Ramya Sunil
Software Development Manager
AWS, EC2 Auto Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Amazon EC2 Auto Scaling
Auto Scaling Groups with multiple purchase options and instance types
Example workload on AWS
Demo
Q&A
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon EC2 Auto Scaling?
Amazon EC2
Auto Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 purchase options
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group (ASG) introduction
Logical group of instances
for your service
Minimum and maximum bound
for the number of instances that can
be in the ASG
Launch or terminate instances
to meet the desired capacity
Desired
Min
Max
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scheduled
scaling
Dynamic
scaling
Predictive
scaling
Manual
scaling
Amazon EC2 Auto Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Before: Multiple ASGs to use Spot, On-Demand, and RIs together
m4.large Spot ASG
m5.large Spot ASG
c4.large On-Demand ASG
Availability
Zone 1
Availability
Zone 2
Availability
Zone3
One ASG for each
purchase option
and instance type
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
After: Include Spot, On-Demand, and RIs in a single ASG
m4.large Spot
m5.large Spot
c4.large On-Demand
Availability
Zone 1
Availability
Zone 2
Availability
Zone3
A single ASG combines
purchase options and
instance types
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Save up to 90% using Amazon EC2 Auto Scaling
Automatically scale instances across instance types
and purchase options in a single ASG
Reduce cost
Specify what percentage of your ASG capacity should be fulfilled
by On-Demand Instances and Spot Instances to optimize cost
Optimize performance
Use a prioritized list of On-Demand instance types to scale capacity during
an urgent, unpredictable event to optimize performance
Eliminate operational overhead
Amazon EC2 Auto
Scaling
Reduce cost Optimize performance Eliminate operational overhead
On-Demand Instances
Spot Instances
Reserved Instances
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
API Parameters
"MixedInstancesPolicy": {
"LaunchTemplate": {
"LaunchTemplateSpecification": {
"LaunchTemplateName": ”MyLaunchTemplate"
},
"Overrides": [
{ "InstanceType": "c5.large" },
{ "InstanceType": "c4.large" }
]
},
"InstancesDistribution": {
"OnDemandAllocationStrategy": "prioritized",
"OnDemandBaseCapacity": 10,
"OnDemandPercentageAboveBaseCapacity": 50,
"SpotAllocationStrategy": "lowest-price",
"SpotInstancePools": 2,
"SpotMaxPrice": ”0.05"
}
}
AZ1 and AZ2
Desired
Min
Max
On-Demand Base
50% On-Demand
50% Spot
Minimum On-Demand (10)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Fleet and Allocation strategies
• Amazon EC2 Fleet
• Provisions capacity across multiple instance types according to allocation strategies
• Allocation strategies
• On-Demand prioritized list of instance types
• Spot instances across the N lowest priced instance pools
• More coming soon
• Allocation strategies determine which instance types are launched and
terminated
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Big data reference architecture
Master Node
(OD or RI)
S3
EMRFS
Master Fleet
Task Node
(OD or RI)
Task Node
(Spot)
Task Node
(Spot)
Task Fleet
Instance
Store
EBS Volume
Instance
Store
EBS Volume
Instance
Store
EBS Volume
Core Fleet
HDFS
Instance Fleet
Core Node (OD
or RI)
Core Node (OD
or RI)
Core Node
(SpotI)
Amazon EMR
Amazon EC2 Auto
Scaling
Amazon EC2 Auto
Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Task node fleet configuration
"MixedInstancesPolicy": {
"LaunchTemplate": {
"LaunchTemplateSpecification": {
"LaunchTemplateName": ”MyLaunchTemplate"
},
"Overrides": [
{ "InstanceType": "m4.4xlarge" },
{ "InstanceType": "m5.4xlarge" },
{ "InstanceType": "c5d.4xlarge" },
{ "InstanceType": "m5d.4xlarge" },
{ "InstanceType": "c4.4xlarge" }
]
},
"InstancesDistribution": {
"OnDemandAllocationStrategy": "prioritized",
"OnDemandBaseCapacity": 250,
"OnDemandPercentageAboveBaseCapacity": 0,
"SpotAllocationStrategy": "lowest-price",
"SpotInstancePools": 2
}
}
AZ1 and AZ2
Minimum On-Demand (250)
Min - 200
Max - 350
On-Demand Base - 250
0% On-Demand (0)
100% Spot (50)
Desired - 300
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Core fleet configuration
"MixedInstancesPolicy": {
"LaunchTemplate": {
"LaunchTemplateSpecification": {
"LaunchTemplateName": ”MyLaunchTemplate"
},
"Overrides": [
{ "InstanceType": "m4.4xlarge" },
{ "InstanceType": "m5.4xlarge" },
{ "InstanceType": "c5d.4xlarge" },
{ "InstanceType": "m5d.4xlarge" },
{ "InstanceType": "c4.4xlarge" }
]
},
"InstancesDistribution": {
"OnDemandAllocationStrategy": "prioritized",
"OnDemandBaseCapacity": 0,
"OnDemandPercentageAboveBaseCapacity": 30,
"SpotAllocationStrategy": "lowest-price",
"SpotInstancePools": 2
}
}
AZ1 and AZ2
Desired - 50
Min - 20
Max - 80
30% On-Demand (15)
70% Spot (35)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Instances distribution
• ASG scales up and down according to the instances distribution
• Amazon EC2 Auto Scaling ensures base capacity is fulfilled with On-Demand Instances
• Capacity beyond base capacity is fulfilled with Spot or On-Demand Instances according to percentage
split
Example: OnDemandBaseCapacity: 10 OnDemandPercentageAboveBaseCapacity: 50
Desired Capacity On-Demand Instances Spot Instances
Desired < Base 5 5 0
Desired = Base 10 10 0
Desired > Base 20 15 5
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Instance type overrides and allocation strategies
• ASG adjusts to new configuration
as scale up and down
• As ASG scales up
• Launch instances according to the new
configuration
• As ASG scales down
• Prioritize terminating instances not
matching the new configuration
• New termination policy:
AllocationStrategy
Instance type overrides: m4.large, m5.large
m4.large m5.large
Instance type overrides: m5.large, c5.large
m4.large m5.large c5.large
Instance type overrides: m5.large, c5.large
m4.large m5.large c5.large
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Recommendations on Mixed Instances Policy
• Choose at least 2 instance type overrides
• Improves availability for On-Demand and Spot Instances
• Diversify across at least N = 2 Spot Instance pools
• Reduces risk from fluctuations in Spot capacity and prices
• Choose instance types of same size across families
• Maintains stability as dynamically scale up and down
• Use default spot max price
• Leverages spot cost savings while defaulting to on-demand price as maximum price to pay
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Demand and Spot Instance pools
• Instances Distribution
• Distribute instances evenly between availability zones for On-demand and Spot separately
• Launch Failures
• Launch instances in another availability zone when launches fail for On-Demand and Spot separately
Allows On-Demand capacity to be balanced while Spot capacity is migrated to
another availability zone due to low capacity or high prices
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Demand and Spot Instance pools
VPC
Balanced capacity across Spot Instances
Balanced capacity across On-Demand Instances
Availability
Zone 1
Availability
Zone 2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Demand and Spot Instance pools
Spot Instances are unavailable in AZ1
Balanced capacity across On-Demand Instances
Availability
Zone 1
Availability
Zone 2
VPC
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Demand and Spot Instance pools
Spot Instances are retargeted to AZ2
Balanced capacity across On-Demand Instances
Availability
Zone 1
Availability
Zone 2
VPC
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Demand and Spot Instance pools
Balanced capacity across Spot Instances
Balanced capacity across On-Demand Instances
Availability
Zone 1
Availability
Zone 2
VPC
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Update existing Auto Scaling groups
• From launch configuration
• Copy launch configuration to a launch template (using console)
• Follow below steps to update existing Auto Scaling groups from launch template
• From launch template
• Choose at least 2 instances type overrides
• Determine desired base On-Demand capacity and On-Demand/Spot percentage split
• Update Auto Scaling group with Mixed Instances Policy containing
• Launch template
• Instance type overrides
• Base On-Demand capacity
• On-Demand/Spot percentage split
Create or update Auto Scaling groups to
use multiple purchase options and
instance types
https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Susanna Ng
susannan@amazon.com
Ramya Sunil
suniramy@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

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
 
Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018
Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018
Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018
Amazon Web Services
 
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Amazon Web Services
 
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Amazon Web Services
 
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Amazon Web Services
 
Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018
Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018
Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018
Amazon Web Services
 
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Amazon Web Services
 
How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...
How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...
How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...
Amazon Web Services
 
Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...
Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...
Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...
Amazon Web Services
 
BDA310 Transcribe and Translate
BDA310 Transcribe and TranslateBDA310 Transcribe and Translate
BDA310 Transcribe and Translate
Amazon Web Services
 
Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...
Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...
Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...
Amazon Web Services
 
Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018
Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018
Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018
Amazon Web Services
 
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Amazon Web Services
 
Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...
Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...
Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...
Amazon Web Services
 
Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018
Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018
Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018
Amazon Web Services
 
Work Anywhere with Amazon Workspaces (Level: 200)
Work Anywhere with Amazon Workspaces (Level: 200)Work Anywhere with Amazon Workspaces (Level: 200)
Work Anywhere with Amazon Workspaces (Level: 200)
Amazon Web Services
 
Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...
Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...
Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...
Amazon Web Services
 
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Amazon Web Services
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Web Services
 
Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...
Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...
Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...
Amazon Web Services
 

What's hot (20)

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...
 
Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018
Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018
Operationalizing Microsoft Workloads (WIN320) - AWS re:Invent 2018
 
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
 
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
 
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
 
Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018
Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018
Containerizing Legacy .NET Workloads (CON348-R1) - AWS re:Invent 2018
 
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
 
How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...
How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...
How Trek10 Uses Datadog's Distributed Tracing to Improve AWS Lambda Projects ...
 
Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...
Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...
Security & Compliance for Modern Serverless Applications (SRV319-R1) - AWS re...
 
BDA310 Transcribe and Translate
BDA310 Transcribe and TranslateBDA310 Transcribe and Translate
BDA310 Transcribe and Translate
 
Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...
Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...
Introduction to Version 3 of the AWS SDK for JavaScript (TypeScript) (DEV379-...
 
Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018
Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018
Building an Augmented Reality Owner's Manual (AMT315) - AWS re:Invent 2018
 
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
 
Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...
Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...
Inventory, Track, and Respond to AWS Asset Changes within Seconds at Scale (S...
 
Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018
Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018
Getting Started with AWS Greengrass (IOT215-R3) - AWS re:Invent 2018
 
Work Anywhere with Amazon Workspaces (Level: 200)
Work Anywhere with Amazon Workspaces (Level: 200)Work Anywhere with Amazon Workspaces (Level: 200)
Work Anywhere with Amazon Workspaces (Level: 200)
 
Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...
Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...
Another Week, Another Million Containers on Amazon EC2 (CMP376) - AWS re:Inve...
 
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
 
Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...
Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...
Run Your CI/CD and Test Workloads for 90% Less with Amazon EC2 Spot Instances...
 

Similar to Save up to 90% Using Multiple Purchase Options in Amazon EC2 Auto Scaling (CMP390-R1) - AWS re:Invent 2018

Amazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances WorkshopAmazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances Workshop
AWS User Group Bengaluru
 
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
 
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 Web Services
 
Optimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS Summit
Optimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS SummitOptimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS Summit
Optimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS Summit
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 Floor28
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
 
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
 
Cost Optimize EC2 with Amazon EC2 Spot Instances
Cost Optimize EC2 with Amazon EC2 Spot InstancesCost Optimize EC2 with Amazon EC2 Spot Instances
Cost Optimize EC2 with Amazon EC2 Spot Instances
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 Trainline
Amazon Web Services
 
AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances
AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot InstancesAWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances
AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances
Amazon Web Services
 
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
Amazon Web Services
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
AWS User Group Bengaluru
 
Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...
Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...
Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...
Amazon Web Services
 
A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018
A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018
A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018
Amazon 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
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
Amazon 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
 
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
 
Introduction to Amazon EC2 Spot
Introduction to Amazon EC2 SpotIntroduction to Amazon EC2 Spot
Introduction to Amazon EC2 Spot
Amazon 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
 

Similar to Save up to 90% Using Multiple Purchase Options in Amazon EC2 Auto Scaling (CMP390-R1) - AWS re:Invent 2018 (20)

Amazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances WorkshopAmazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances Workshop
 
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:...
 
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
 
Optimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS Summit
Optimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS SummitOptimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS Summit
Optimize Amazon EC2 for Fun and Profit - SRV203 - Chicago AWS Summit
 
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
 
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...
 
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
 
Cost Optimize EC2 with Amazon EC2 Spot Instances
Cost Optimize EC2 with Amazon EC2 Spot InstancesCost Optimize EC2 with Amazon EC2 Spot Instances
Cost Optimize EC2 with Amazon EC2 Spot Instances
 
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
 
AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances
AWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot InstancesAWS Compute Evolved Week: Cost Optimize EC2 with Amazon EC2 Spot Instances
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 2018
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
 
Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...
Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...
Running Amazon EKS Workloads on Amazon EC2 Spot Instances (CMP403-R1) - AWS r...
 
A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018
A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018
A Deep Dive into What's New with Amazon EMR (ANT340-R1) - AWS re:Invent 2018
 
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to 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 ...
 
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:...
 
Introduction to Amazon EC2 Spot
Introduction to Amazon EC2 SpotIntroduction to Amazon EC2 Spot
Introduction to Amazon EC2 Spot
 
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...
 

More from Amazon Web Services

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

More from Amazon Web Services (20)

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

Save up to 90% Using Multiple Purchase Options in Amazon EC2 Auto Scaling (CMP390-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Save up to 90% using multiple purchase options in Amazon EC2 Auto Scaling Susanna Ng Senior Software Development Engineer AWS, EC2 Auto Scaling C M P 3 9 0 Ramya Sunil Software Development Manager AWS, EC2 Auto Scaling
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Amazon EC2 Auto Scaling Auto Scaling Groups with multiple purchase options and instance types Example workload on AWS Demo Q&A
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is Amazon EC2 Auto Scaling? Amazon EC2 Auto Scaling
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 purchase options
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group (ASG) introduction Logical group of instances for your service Minimum and maximum bound for the number of instances that can be in the ASG Launch or terminate instances to meet the desired capacity Desired Min Max
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scheduled scaling Dynamic scaling Predictive scaling Manual scaling Amazon EC2 Auto Scaling
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Before: Multiple ASGs to use Spot, On-Demand, and RIs together m4.large Spot ASG m5.large Spot ASG c4.large On-Demand ASG Availability Zone 1 Availability Zone 2 Availability Zone3 One ASG for each purchase option and instance type
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. After: Include Spot, On-Demand, and RIs in a single ASG m4.large Spot m5.large Spot c4.large On-Demand Availability Zone 1 Availability Zone 2 Availability Zone3 A single ASG combines purchase options and instance types
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Save up to 90% using Amazon EC2 Auto Scaling Automatically scale instances across instance types and purchase options in a single ASG Reduce cost Specify what percentage of your ASG capacity should be fulfilled by On-Demand Instances and Spot Instances to optimize cost Optimize performance Use a prioritized list of On-Demand instance types to scale capacity during an urgent, unpredictable event to optimize performance Eliminate operational overhead Amazon EC2 Auto Scaling Reduce cost Optimize performance Eliminate operational overhead On-Demand Instances Spot Instances Reserved Instances
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. API Parameters "MixedInstancesPolicy": { "LaunchTemplate": { "LaunchTemplateSpecification": { "LaunchTemplateName": ”MyLaunchTemplate" }, "Overrides": [ { "InstanceType": "c5.large" }, { "InstanceType": "c4.large" } ] }, "InstancesDistribution": { "OnDemandAllocationStrategy": "prioritized", "OnDemandBaseCapacity": 10, "OnDemandPercentageAboveBaseCapacity": 50, "SpotAllocationStrategy": "lowest-price", "SpotInstancePools": 2, "SpotMaxPrice": ”0.05" } } AZ1 and AZ2 Desired Min Max On-Demand Base 50% On-Demand 50% Spot Minimum On-Demand (10)
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 Fleet and Allocation strategies • Amazon EC2 Fleet • Provisions capacity across multiple instance types according to allocation strategies • Allocation strategies • On-Demand prioritized list of instance types • Spot instances across the N lowest priced instance pools • More coming soon • Allocation strategies determine which instance types are launched and terminated
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Big data reference architecture Master Node (OD or RI) S3 EMRFS Master Fleet Task Node (OD or RI) Task Node (Spot) Task Node (Spot) Task Fleet Instance Store EBS Volume Instance Store EBS Volume Instance Store EBS Volume Core Fleet HDFS Instance Fleet Core Node (OD or RI) Core Node (OD or RI) Core Node (SpotI) Amazon EMR Amazon EC2 Auto Scaling Amazon EC2 Auto Scaling
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Task node fleet configuration "MixedInstancesPolicy": { "LaunchTemplate": { "LaunchTemplateSpecification": { "LaunchTemplateName": ”MyLaunchTemplate" }, "Overrides": [ { "InstanceType": "m4.4xlarge" }, { "InstanceType": "m5.4xlarge" }, { "InstanceType": "c5d.4xlarge" }, { "InstanceType": "m5d.4xlarge" }, { "InstanceType": "c4.4xlarge" } ] }, "InstancesDistribution": { "OnDemandAllocationStrategy": "prioritized", "OnDemandBaseCapacity": 250, "OnDemandPercentageAboveBaseCapacity": 0, "SpotAllocationStrategy": "lowest-price", "SpotInstancePools": 2 } } AZ1 and AZ2 Minimum On-Demand (250) Min - 200 Max - 350 On-Demand Base - 250 0% On-Demand (0) 100% Spot (50) Desired - 300
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Core fleet configuration "MixedInstancesPolicy": { "LaunchTemplate": { "LaunchTemplateSpecification": { "LaunchTemplateName": ”MyLaunchTemplate" }, "Overrides": [ { "InstanceType": "m4.4xlarge" }, { "InstanceType": "m5.4xlarge" }, { "InstanceType": "c5d.4xlarge" }, { "InstanceType": "m5d.4xlarge" }, { "InstanceType": "c4.4xlarge" } ] }, "InstancesDistribution": { "OnDemandAllocationStrategy": "prioritized", "OnDemandBaseCapacity": 0, "OnDemandPercentageAboveBaseCapacity": 30, "SpotAllocationStrategy": "lowest-price", "SpotInstancePools": 2 } } AZ1 and AZ2 Desired - 50 Min - 20 Max - 80 30% On-Demand (15) 70% Spot (35)
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20.
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Instances distribution • ASG scales up and down according to the instances distribution • Amazon EC2 Auto Scaling ensures base capacity is fulfilled with On-Demand Instances • Capacity beyond base capacity is fulfilled with Spot or On-Demand Instances according to percentage split Example: OnDemandBaseCapacity: 10 OnDemandPercentageAboveBaseCapacity: 50 Desired Capacity On-Demand Instances Spot Instances Desired < Base 5 5 0 Desired = Base 10 10 0 Desired > Base 20 15 5
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Instance type overrides and allocation strategies • ASG adjusts to new configuration as scale up and down • As ASG scales up • Launch instances according to the new configuration • As ASG scales down • Prioritize terminating instances not matching the new configuration • New termination policy: AllocationStrategy Instance type overrides: m4.large, m5.large m4.large m5.large Instance type overrides: m5.large, c5.large m4.large m5.large c5.large Instance type overrides: m5.large, c5.large m4.large m5.large c5.large
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Recommendations on Mixed Instances Policy • Choose at least 2 instance type overrides • Improves availability for On-Demand and Spot Instances • Diversify across at least N = 2 Spot Instance pools • Reduces risk from fluctuations in Spot capacity and prices • Choose instance types of same size across families • Maintains stability as dynamically scale up and down • Use default spot max price • Leverages spot cost savings while defaulting to on-demand price as maximum price to pay
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. On-Demand and Spot Instance pools • Instances Distribution • Distribute instances evenly between availability zones for On-demand and Spot separately • Launch Failures • Launch instances in another availability zone when launches fail for On-Demand and Spot separately Allows On-Demand capacity to be balanced while Spot capacity is migrated to another availability zone due to low capacity or high prices
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. On-Demand and Spot Instance pools VPC Balanced capacity across Spot Instances Balanced capacity across On-Demand Instances Availability Zone 1 Availability Zone 2
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. On-Demand and Spot Instance pools Spot Instances are unavailable in AZ1 Balanced capacity across On-Demand Instances Availability Zone 1 Availability Zone 2 VPC
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. On-Demand and Spot Instance pools Spot Instances are retargeted to AZ2 Balanced capacity across On-Demand Instances Availability Zone 1 Availability Zone 2 VPC
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. On-Demand and Spot Instance pools Balanced capacity across Spot Instances Balanced capacity across On-Demand Instances Availability Zone 1 Availability Zone 2 VPC
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Update existing Auto Scaling groups • From launch configuration • Copy launch configuration to a launch template (using console) • Follow below steps to update existing Auto Scaling groups from launch template • From launch template • Choose at least 2 instances type overrides • Determine desired base On-Demand capacity and On-Demand/Spot percentage split • Update Auto Scaling group with Mixed Instances Policy containing • Launch template • Instance type overrides • Base On-Demand capacity • On-Demand/Spot percentage split
  • 34. Create or update Auto Scaling groups to use multiple purchase options and instance types https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html
  • 35. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Susanna Ng susannan@amazon.com Ramya Sunil suniramy@amazon.com
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.