Professional Documents
Culture Documents
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS global platform SLA of
99.99% availability
Instance Additional
CPU generation capabilities
Memory
M5d.xlarge
Storage Instance family Instance size
Network performance
Instance type
Broadest and deepest platform choice
Workloads Capabilities Options
270+
(AWS, Intel, AMD)
(Nano to 32xlarge)
Continued rapid pace of innovation
Instance growth
270+
Customer obsessed
90%
of the roadmap originates with customer requests
and is designed to meet specific needs
Optimizing Amazon
EC2 cost and capacity
Optimizing Amazon EC2 cost and capacity
We continue to innovate for our customers
On-Demand
1
Instance Price $/h
0.8
eu-central-1
0.6
0.4
0.2
0
r5.2xl r5a.2xl r5d.2xl m5.4xl r4.2xl m4.4xl
spot price on-demand price
T7 and Cloud Use-Cases – SmokeTest termination rate
Number of SmokeTest Spot Instances and Terminations
5000
4532
4000
3323
2919
3000
2459
2000
1521
1000
20 25 128 29 71
0
2019-Jan 2019-Feb 2019-Mar 2019-Apr 2019-May
SmokeTest all SmokeTest terminated
Introducing Savings Plans
Offer the greatest flexibility, up to 66% off Provide the lowest prices, up to 72% off (same
as Standard RIs) on the selected instance family
(same prices as Convertible RIs)
(e.g., C5 or M5), in a specific AWS Region
Just like RIs, you can purchase Savings Plans via the RI operations team
Spot, On-Demand capacity reservations, and
Savings Plan together
Cost-effective,
Savings Plan scalable compute
On-Demand capacity
reservations
Spot Instances
Save up to 90% using EC2 Spot Instances
Faster results
Increase throughput up to 10x while staying in budget
Easy to use
Launch through AWS services (e.g., Amazon ECS, Amazon EKS,
AWS Batch, Amazon SageMaker, Amazon EMR) or integrated
third parties
Handling Spot interruptions
Less than 5% of Spot Instances were interrupted in the last 3 months
Minimal interruptions
Check for 2-minute interruption notification via instance
metadata or Amazon CloudWatch events, and automate by
Checkpointing
Draining from ELB
Using stop-start and hibernate to restart faster
80
71.4
Up to 70%
savings for non-
60
40
35.7
production
29.8 workloads
20
0
24 x 7 24 x 5 12 x 5 10 x 5
AWS Instance Scheduler
• AWS-provided solution
• Custom start & stop schedules
• Works with EC2 & RDS instances
• Deploy using CloudFormation
• Selectively tag instances to schedule
• Multiple schedules per instance
• 5-minute granularity
https://aws.amazon.com/answers/infrastructure-
management/instance-scheduler/
Using Amazon EC2 Auto Scaling
Automatically scale instances across instance families
and purchase options in a single ASG to optimize cost
Amazon EC2
Auto Scaling
Capacity-optimized
Prioritize deploying Spot Instances into greater Spot pool capacity
order to lower the chance of interruptions
Lowest cost
Prioritize cost by selecting a mix of On-Demand and Spot Instances
to launch based on the lowest available price
In every Region
2XL $0.08 $0.07 $0.08 $0.44
Is a separate Spot pool
XL $0.04 $0.05 $0.04 $0.22
R5 I3 C5 R5d
R4 M5
L $0.01 $0.01 $0.04 $0.11
M4 i3en R5a
ASG capacity-optimized allocation strategy
Desired capacity: 12 OnDemandBaseCapacity: 0 OnDemandPercentageAboveCapacity: 0
R5 R5
R5 R5
ASG lowest-price allocation strategy
Desired capacity: 12 OnDemandBaseCapacity: 0 OnDemandPercentageAboveCapacity: 0
R5 R5
R5 R5
Instance type overrides and allocation strategies
ASG adjusts to new configuration Instance type overrides: m4.large, m5.large
as it scales up and down
On-Demand
Before, with
three ASGs
—one for each m5.large Spot ASG Min: 1 Max: 10
instance type/
purchase option
m4.xlarge Spot
Weight of 1
m4.4xlarge On-Demand
Weight of 4
Amazon EC2 Amazon EC2 AWS Thinkbox Amazon EMR AWS AWS
Auto Scaling fleet CloudFormation Batch
Amazon
CloudWatch
metrics
EC2 Instance
Databases
DevOps—CI/CD
Workloads
on AWS Enterprise applications
IoT
Machine learning
Storage
Websites and web applications
Machine learning
Workloads
on AWS
DevOps—CI/CD
https://ec2spotworkshops.com/amazon-ec2-spot-cicd-workshop.html
CI/CD reference architecture
VPC
Spot fleet
Availability Zone A
Jenkins agent
(Spot)
Jenkins agent
Jenkins master (Spot)
Users Application (OD or RI)
Load Balancer
Jenkins agent
Availability Zone B
(Spot)
Jenkins agent
Jenkins master (Spot)
(OD or RI)
https://github.com/awslabs/ec2-spot-jenkins-plugin/
Machine learning
Workloads
on AWS
DevOps—CI/CD
Amazon EC2
Auto Scaling
Deploy web applications or services on containers and scale clusters at a fraction of the cost
Use Auto Scaling with Amazon ECS or Amazon EKS to run any containerized workload,
including a web application
1 2 3 4
Experiment and test How to automate Optimize your Get technical
at a lower cost to cost and capacity workloads by using guidance in an AWS
innovate faster optimization best practices Immersion Day
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.