O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Amazon EC2 Spot- AWS Container Day 2019 Barcelona

166 visualizações

Publicada em

In this session, we look into how you can get started with Amazon EC2 Spot Instances to better optimize your costs. We also cover best practices to ensure success with Spot.

  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Amazon EC2 Spot- AWS Container Day 2019 Barcelona

  1. 1. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Carlos Rueda– ruecarlo@amazon.com Specialist Solutions Architect – EC2 Spot May 2019 Amazon EC2 Spot Instances
  2. 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 purchase options Spot Instances Spare EC2 capacity at off On-Demand prices Fault-tolerant, flexible, stateless workloads Reserved Instances Make a 1 or 3-year commitment and receive a off On-Demand prices Committed & steady-state usage On-Demand Pay for compute capacity with no long-term commitments Spiky workloads, to define needs
  3. 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot is easy Price changes infrequently based on long term supply and demand of spare capacity in each pool independently Just request capacity and pay the current rate. No Bidding Interruptions only happen when OD needs capacity. No outbidding
  4. 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Large customer base
  5. 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Spot integrations Auto Scaling AWS Batch Amazon EMR AWS Data Pipeline Amazon Elastic Container Service AWS CloudFormation Amazon Elastic Container Service for Kubernetes AWS Thinkbox Deadline
  6. 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Is my workload Spot Ready? Stateless Fault-Tolerant Flexible: Multi- AZ and Instance Flexibility Loosely Coupled Looks familiar?
  7. 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Containers + Spot = match made in heaven Skyscanner is a travel fare aggregator website and travel metasearch engine based in Edinburgh, Scotland
  8. 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. New Pricing Model No biddingPredictable Prices
  9. 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. New Pricing Model New smooth pricing November 2017
  10. 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. $0.27 $0.29$0.50 1b 1c1a 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 EC2 Spot pools – instance flexibility Each instance family Each instance size Each Availability Zone (64) In every region (21) Is a separate Spot pool R5 M4 C5 I3 M5d R4 D2 C4
  11. 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Monitoring Spot usage – Savings Summary
  12. 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What about interruptions?
  13. 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Auto Scaling Groups
  14. 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Instance Advisor
  15. 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot with Amazon ECS
  16. 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Integrated directly into ECS console, or use CloudFormation, Terraform ECS creates a Spot Fleet in your account, Or – use an Auto Scaling Group to bootstrap instances Autoscaling ECS service: CPU/MEM, HTTP requests Spot Fleet / ASG on reserved metric - CPU, MEM Interruptions are handled automatically via scripts installed in User Data ECS: automatically Drain the instance Spot Fleet / ASG: automatically replace the instance ECS - Provisioning and scaling
  17. 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot with Amazon EKS • Run a DaemonSet on every worker to catch the Spot interruption and cordon & drain the node • Use labels to identify Spot nodes (for the DaemonSet, and other purposes – affinity & tolerations?)
  18. 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. m4.large Spot Instances m5.large Spot Instances c4.xlarge On-Demand instances Availability Zone 1 Availability Zone 2 Availability Zone3 The new ASG combines purchase options, instance types and AZs in a single ASG Single ASG Multiple instance types & purchase options in ASG https://tinyurl.com/NewASGblog
  19. 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Main takeaways for success with Spot • Be instance type agnostic and let ASG/Fleet provide the required capacity at the lowest price • Adopt Launch Templates to benefit from new ASG and Fleet features • New instance families generally have higher interruption rates • Architect for fault-tolerance to be Spot compatible and increase your availability
  20. 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Spot instance Workshops: https://ec2spotworkshops.com +

×