SlideShare a Scribd company logo
1 of 16
Download to read offline
● Instance Characteristics
● EC2 Purchase Options
● RI Flexibility Factor
● RI Coverage
● Saving Plans Coverage
● Spot Risks
● Spot Recommendations
Olaf Reitmaier Veracierta
June, 2021.
1
Risks
AWS EC2 Instance Characteristics
2
AWS EC2 Purchase Options
Dedicated Instances – Instance (hr) running on single-tenant hosts (account isolation).
Dedicated Hosts – Physical host (hr) fully dedicated for you (hardware isolation).
Capacity Reservations – Reserve capacity for EC2 in a specific AZ for any duration.
3
AWS EC2 Reserved Instances
4
AWS EC2 RI vs. Savings Plans
Reserved
Instances
Saving
Plans
● EC2, RDS, ElastiCache, ElasticSearch, RedShift
● Specific instance family/size/region(/az) (e.g. r5, db.r5)
● EC2, Fargate and Lambda
● Any family/type/region/tenancy/os
EC2
Compute
SageMaker
● EC2 specify family (e.g. r5, db.r5)
● Any size/region/tenancy/os
https://console.aws.amazon.com/cost-management/home#/dashboard
5
AWS EC2 RI - Flexibility Factor
It means that:
● 1 large = 4 small
● 1 large = 8 nano
● 1 xlarge = 8 small
● 1 2xlarge = 2 xlarge
● And so on...
https://aws.amazon.com/blogs/aws/new-instance-size-flexibility-for-ec2-reserved-instances/
6
AWS EC2 RI - Visibility and Coverage
Root
Account
B
Account
A
Account
C
Account
RDS:
db.t3.small
RDS:
db.t3.xlarge
RDS:
db.r5.2xlarge
db.r5.8xlarge
Root Account ⇔ Payment Account
Member
Accounts
RDS RI:
1x db.t3.xlarge
9 x db.r5.xlarge
Fully Covered / Partially Covered / Not Covered! / Unused!
RDS RI:
1 x db.t3.small
... ...
1. Reservations are only
visible (Cost Explorer) and
applicable (Coverage) in
purchasing account!
2. Recommendations,
Purchase Granularity,
Avoid Fragmentations
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html 7
AWS EC2 Saving Plans - Visibility and Coverage
Root
Account
B
Account
A
Account
C
Account
EC2:
1 $/hr
EC2:
2 $/hr
EC2:
3 $/hr
2 $/hr
Root Account ⇔ Payment Account
Member
Accounts
EC2 SP:
2 $/hr (1st)
3 $/hr (2nd)
Fully Covered / Partially Covered / Not Covered! / Unused!
EC2 SP:
1 $/hr (3rd)
... ...
1. Saving Plans are only
visible (Cost Explorer) and
applicable (Coverage) in
purchasing account!
2. Recommendations,
Purchase Granularity,
Avoid Fragmentations
https://docs.aws.amazon.com/savingsplans/latest/userguide/sp-applying.html
8
AWS EC2 Spot Risk - Scenario A
A
A
A
B
B
B
C
C
C
30% On-Demand
70% Spot
● Daily/Stable
● Spikes on Spot
9
AWS EC2 Spot Risk - Event A
A
A
A
B
B
B
C
C
C
30% On-Demand
70% Spot
A
A
A
(B)
(B) (B)
C
C
C
22% On-Demand
44% Spot
---
66% Alive
~ 34% Unknown
AZ B Down
AWS Service Priority:
On-Demand > Spot
10
AWS EC2 Spot Risk - Event B
A
A
A
(B)
(B) (B)
C
C
C
22% On-Demand
44% Spot
~ 30% Unknown
A
A
(A)
(B)
(B) (B)
C
C
(C)
22% On-Demand
22% Spot
---
44% Alive
~ 66% Unknown
2x Spots
Terminated
AWS Service Priority:
On-Demand > Spot
11
AWS EC2 Spot Risk - Same Outcome...
A
A
(A)
(B)
(B) (B)
C
C
(C)
22% On-Demand
22% Spot
---
44% Alive
~ 66% Unknown
Events: A=>B ⇔ B=>A ⇒ ~66% Unknown
12
AWS EC2 Spot Recommendations
● Production:
○ User facing applications: >= 60% on-demand
○ Other: >= 30% on-demand
● Non-Production:
○ Any: 100 % spot
● All, be prepared for:
○ Test killing all your EC2 Spot in one AZ.
○ Test killing/rebooting all your EC2 Spot/On-Demand in one AZ.
13
AWS EC2 Spot When to Use Them
● You can use Spot Instances for various fault-tolerant and flexible applications. Examples include stateless
web servers, API endpoints, big data and analytics applications, containerized workloads, CI/CD high
performance and high throughput computing (HPC/HTC), rendering workloads, and other flexible workloads.
● Spot Instances are not suitable for workloads that are inflexible, stateful, fault-intolerant, or tightly coupled
between instance nodes. Spot Instances are also not recommended for workloads that are intolerant of
occasional periods when the target capacity is not completely available. We strongly warn against using
Spot Instances for these workloads or for attempting to fail-over to On-Demand Instances to handle
interruptions.
14
https://docs.aws.amazon.com/whitepapers/latest/cost-optimization-leveraging-ec2-spot-
instances/when-to-use-spot-instances.html
AWS EC2 Lifecycle
15
AWS EC2 Lifecycle (Kubernetes)
kubectl get nodes -o custom-
columns=NAME:.metadata.name,ACC:.metadata.labels.application,TYPE:.metadata.labels.node_type,LIFECYCLE:".metadata.labels.aws.io/li
fecycle" --sort-by .metadata.labels.application
Lifecycle Normal  On-Demand
16

More Related Content

Similar to AWS Cost Optimizations Risks

Amazon EC2 - Masterclass - Pop-up Loft Tel Aviv
Amazon EC2 - Masterclass - Pop-up Loft Tel AvivAmazon EC2 - Masterclass - Pop-up Loft Tel Aviv
Amazon EC2 - Masterclass - Pop-up Loft Tel AvivAmazon Web Services
 
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020Massimo Ferre'
 
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...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
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWSAmazon Web Services
 
AWS モニタリングソリューションのご紹介
AWS モニタリングソリューションのご紹介AWS モニタリングソリューションのご紹介
AWS モニタリングソリューションのご紹介Takanori Ohba
 
AWS Update from AWS User Group UK July Meetup
AWS Update from AWS User Group UK July MeetupAWS Update from AWS User Group UK July Meetup
AWS Update from AWS User Group UK July MeetupIan Massingham
 
(ARC403) From One To Many: Evolving VPC Design
(ARC403) From One To Many: Evolving VPC Design(ARC403) From One To Many: Evolving VPC Design
(ARC403) From One To Many: Evolving VPC DesignAmazon Web Services
 
Bootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWSBootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWSAmazon Web Services
 
AWSomeDay Roadshow 2017
AWSomeDay Roadshow 2017AWSomeDay Roadshow 2017
AWSomeDay Roadshow 2017Tom Woodyer
 
AWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWSAWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWSAmazon Web Services
 
Dev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWSDev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWSShiva Narayanaswamy
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWSDesign, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWSAmazon Web Services
 
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul MaddoxAWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul MaddoxAWS Riyadh User Group
 
Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...
Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...
Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...Amazon Web Services
 

Similar to AWS Cost Optimizations Risks (20)

Amazon EC2 - Masterclass - Pop-up Loft Tel Aviv
Amazon EC2 - Masterclass - Pop-up Loft Tel AvivAmazon EC2 - Masterclass - Pop-up Loft Tel Aviv
Amazon EC2 - Masterclass - Pop-up Loft Tel Aviv
 
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
 
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
 
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
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWS
 
AWSomeDays 2018 TechTrack
AWSomeDays 2018 TechTrackAWSomeDays 2018 TechTrack
AWSomeDays 2018 TechTrack
 
AWS モニタリングソリューションのご紹介
AWS モニタリングソリューションのご紹介AWS モニタリングソリューションのご紹介
AWS モニタリングソリューションのご紹介
 
AWS-services.pdf
AWS-services.pdfAWS-services.pdf
AWS-services.pdf
 
AWS Update from AWS User Group UK July Meetup
AWS Update from AWS User Group UK July MeetupAWS Update from AWS User Group UK July Meetup
AWS Update from AWS User Group UK July Meetup
 
(ARC403) From One To Many: Evolving VPC Design
(ARC403) From One To Many: Evolving VPC Design(ARC403) From One To Many: Evolving VPC Design
(ARC403) From One To Many: Evolving VPC Design
 
Bootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWSBootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWS
 
AWSomeDay Roadshow 2017
AWSomeDay Roadshow 2017AWSomeDay Roadshow 2017
AWSomeDay Roadshow 2017
 
AWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWSAWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWS
 
Amazon Web Services (AWS) Case study
Amazon Web Services (AWS) Case studyAmazon Web Services (AWS) Case study
Amazon Web Services (AWS) Case study
 
AWSome Day Intro
AWSome Day IntroAWSome Day Intro
AWSome Day Intro
 
Cloud Security (AWS)
Cloud Security (AWS)Cloud Security (AWS)
Cloud Security (AWS)
 
Dev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWSDev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWS
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWSDesign, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWS
 
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul MaddoxAWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
 
Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...
Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...
Customer Case Study: Land Registry as a Service in the Cloud - AWS PS Summit ...
 

More from Olaf Reitmaier Veracierta

Bandwidth control approach - Cisco vs Mikrotik on Multitenancy
Bandwidth control approach - Cisco vs Mikrotik on MultitenancyBandwidth control approach - Cisco vs Mikrotik on Multitenancy
Bandwidth control approach - Cisco vs Mikrotik on MultitenancyOlaf Reitmaier Veracierta
 
Arquitectura de Referencia - BGP - GSLB - SLB
Arquitectura de Referencia - BGP - GSLB - SLBArquitectura de Referencia - BGP - GSLB - SLB
Arquitectura de Referencia - BGP - GSLB - SLBOlaf Reitmaier Veracierta
 
Estrategia para Despliegue de Contenedores (Agile/DevOps)
Estrategia para Despliegue de Contenedores (Agile/DevOps)Estrategia para Despliegue de Contenedores (Agile/DevOps)
Estrategia para Despliegue de Contenedores (Agile/DevOps)Olaf Reitmaier Veracierta
 

More from Olaf Reitmaier Veracierta (20)

PoC Azure Administration
PoC Azure AdministrationPoC Azure Administration
PoC Azure Administration
 
RabbitMQ Status Quo Critical Review
RabbitMQ Status Quo Critical ReviewRabbitMQ Status Quo Critical Review
RabbitMQ Status Quo Critical Review
 
AWS Graviton3 and GP3
AWS Graviton3 and GP3AWS Graviton3 and GP3
AWS Graviton3 and GP3
 
Kubernetes Workload Rebalancing
Kubernetes Workload RebalancingKubernetes Workload Rebalancing
Kubernetes Workload Rebalancing
 
KubeAdm vs. EKS - The IAM Roles Madness
KubeAdm vs. EKS - The IAM Roles MadnessKubeAdm vs. EKS - The IAM Roles Madness
KubeAdm vs. EKS - The IAM Roles Madness
 
AWS Network Architecture Rework
AWS Network Architecture ReworkAWS Network Architecture Rework
AWS Network Architecture Rework
 
SRE Organizational Framework
SRE Organizational FrameworkSRE Organizational Framework
SRE Organizational Framework
 
Insight - Architecture Design
Insight - Architecture DesignInsight - Architecture Design
Insight - Architecture Design
 
Bandwidth control approach - Cisco vs Mikrotik on Multitenancy
Bandwidth control approach - Cisco vs Mikrotik on MultitenancyBandwidth control approach - Cisco vs Mikrotik on Multitenancy
Bandwidth control approach - Cisco vs Mikrotik on Multitenancy
 
Transparent Layer 2 Bandwidth Shaper
Transparent Layer 2 Bandwidth ShaperTransparent Layer 2 Bandwidth Shaper
Transparent Layer 2 Bandwidth Shaper
 
Arquitectura de Referencia - BGP - GSLB - SLB
Arquitectura de Referencia - BGP - GSLB - SLBArquitectura de Referencia - BGP - GSLB - SLB
Arquitectura de Referencia - BGP - GSLB - SLB
 
Backup aaS Solution Architecture
Backup aaS Solution ArchitectureBackup aaS Solution Architecture
Backup aaS Solution Architecture
 
Presentación de Arquitectura en la Nube
Presentación de Arquitectura en la NubePresentación de Arquitectura en la Nube
Presentación de Arquitectura en la Nube
 
Distributed Web Cluster (LAPP)
Distributed Web Cluster (LAPP)Distributed Web Cluster (LAPP)
Distributed Web Cluster (LAPP)
 
Multi-Cloud Connection Architecture
Multi-Cloud Connection ArchitectureMulti-Cloud Connection Architecture
Multi-Cloud Connection Architecture
 
Managed Cloud Services Revision
Managed Cloud Services RevisionManaged Cloud Services Revision
Managed Cloud Services Revision
 
Ingeniería de Software
Ingeniería de SoftwareIngeniería de Software
Ingeniería de Software
 
Estrategia para Despliegue de Contenedores (Agile/DevOps)
Estrategia para Despliegue de Contenedores (Agile/DevOps)Estrategia para Despliegue de Contenedores (Agile/DevOps)
Estrategia para Despliegue de Contenedores (Agile/DevOps)
 
On-Premise Private Cloud Architecture
On-Premise Private Cloud ArchitectureOn-Premise Private Cloud Architecture
On-Premise Private Cloud Architecture
 
Multimedia Streaming Architecture
Multimedia Streaming ArchitectureMultimedia Streaming Architecture
Multimedia Streaming Architecture
 

Recently uploaded

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Recently uploaded (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

AWS Cost Optimizations Risks

  • 1. ● Instance Characteristics ● EC2 Purchase Options ● RI Flexibility Factor ● RI Coverage ● Saving Plans Coverage ● Spot Risks ● Spot Recommendations Olaf Reitmaier Veracierta June, 2021. 1 Risks
  • 2. AWS EC2 Instance Characteristics 2
  • 3. AWS EC2 Purchase Options Dedicated Instances – Instance (hr) running on single-tenant hosts (account isolation). Dedicated Hosts – Physical host (hr) fully dedicated for you (hardware isolation). Capacity Reservations – Reserve capacity for EC2 in a specific AZ for any duration. 3
  • 4. AWS EC2 Reserved Instances 4
  • 5. AWS EC2 RI vs. Savings Plans Reserved Instances Saving Plans ● EC2, RDS, ElastiCache, ElasticSearch, RedShift ● Specific instance family/size/region(/az) (e.g. r5, db.r5) ● EC2, Fargate and Lambda ● Any family/type/region/tenancy/os EC2 Compute SageMaker ● EC2 specify family (e.g. r5, db.r5) ● Any size/region/tenancy/os https://console.aws.amazon.com/cost-management/home#/dashboard 5
  • 6. AWS EC2 RI - Flexibility Factor It means that: ● 1 large = 4 small ● 1 large = 8 nano ● 1 xlarge = 8 small ● 1 2xlarge = 2 xlarge ● And so on... https://aws.amazon.com/blogs/aws/new-instance-size-flexibility-for-ec2-reserved-instances/ 6
  • 7. AWS EC2 RI - Visibility and Coverage Root Account B Account A Account C Account RDS: db.t3.small RDS: db.t3.xlarge RDS: db.r5.2xlarge db.r5.8xlarge Root Account ⇔ Payment Account Member Accounts RDS RI: 1x db.t3.xlarge 9 x db.r5.xlarge Fully Covered / Partially Covered / Not Covered! / Unused! RDS RI: 1 x db.t3.small ... ... 1. Reservations are only visible (Cost Explorer) and applicable (Coverage) in purchasing account! 2. Recommendations, Purchase Granularity, Avoid Fragmentations https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html 7
  • 8. AWS EC2 Saving Plans - Visibility and Coverage Root Account B Account A Account C Account EC2: 1 $/hr EC2: 2 $/hr EC2: 3 $/hr 2 $/hr Root Account ⇔ Payment Account Member Accounts EC2 SP: 2 $/hr (1st) 3 $/hr (2nd) Fully Covered / Partially Covered / Not Covered! / Unused! EC2 SP: 1 $/hr (3rd) ... ... 1. Saving Plans are only visible (Cost Explorer) and applicable (Coverage) in purchasing account! 2. Recommendations, Purchase Granularity, Avoid Fragmentations https://docs.aws.amazon.com/savingsplans/latest/userguide/sp-applying.html 8
  • 9. AWS EC2 Spot Risk - Scenario A A A A B B B C C C 30% On-Demand 70% Spot ● Daily/Stable ● Spikes on Spot 9
  • 10. AWS EC2 Spot Risk - Event A A A A B B B C C C 30% On-Demand 70% Spot A A A (B) (B) (B) C C C 22% On-Demand 44% Spot --- 66% Alive ~ 34% Unknown AZ B Down AWS Service Priority: On-Demand > Spot 10
  • 11. AWS EC2 Spot Risk - Event B A A A (B) (B) (B) C C C 22% On-Demand 44% Spot ~ 30% Unknown A A (A) (B) (B) (B) C C (C) 22% On-Demand 22% Spot --- 44% Alive ~ 66% Unknown 2x Spots Terminated AWS Service Priority: On-Demand > Spot 11
  • 12. AWS EC2 Spot Risk - Same Outcome... A A (A) (B) (B) (B) C C (C) 22% On-Demand 22% Spot --- 44% Alive ~ 66% Unknown Events: A=>B ⇔ B=>A ⇒ ~66% Unknown 12
  • 13. AWS EC2 Spot Recommendations ● Production: ○ User facing applications: >= 60% on-demand ○ Other: >= 30% on-demand ● Non-Production: ○ Any: 100 % spot ● All, be prepared for: ○ Test killing all your EC2 Spot in one AZ. ○ Test killing/rebooting all your EC2 Spot/On-Demand in one AZ. 13
  • 14. AWS EC2 Spot When to Use Them ● You can use Spot Instances for various fault-tolerant and flexible applications. Examples include stateless web servers, API endpoints, big data and analytics applications, containerized workloads, CI/CD high performance and high throughput computing (HPC/HTC), rendering workloads, and other flexible workloads. ● Spot Instances are not suitable for workloads that are inflexible, stateful, fault-intolerant, or tightly coupled between instance nodes. Spot Instances are also not recommended for workloads that are intolerant of occasional periods when the target capacity is not completely available. We strongly warn against using Spot Instances for these workloads or for attempting to fail-over to On-Demand Instances to handle interruptions. 14 https://docs.aws.amazon.com/whitepapers/latest/cost-optimization-leveraging-ec2-spot- instances/when-to-use-spot-instances.html
  • 16. AWS EC2 Lifecycle (Kubernetes) kubectl get nodes -o custom- columns=NAME:.metadata.name,ACC:.metadata.labels.application,TYPE:.metadata.labels.node_type,LIFECYCLE:".metadata.labels.aws.io/li fecycle" --sort-by .metadata.labels.application Lifecycle Normal  On-Demand 16