SlideShare a Scribd company logo
1 of 26
Cost-effective Compute Clusters with
Spot and Preemptible Instances
Presenters
Slides
https://goo.gl/LbEc1u
Arun Sriraman
Software Engineer
Platform9 Systems
Bich Le
Co-founder & Chief Architect
Platform9 Systems
About Platform9 Systems
Agenda
• Motivation
• Bidding Strategies
• Implementation strategies
• Supporting K8s mechanisms
• Application Scheduling considerations
• Case Study
• Demo
Introducing spot & preemptible instances
• Cheaper instances (60-80% savings)
• But with a catch: can be terminated any time
• AWS: random
• Google Cloud: within 24 hours
• Historically requires some skill
• But Kubernetes makes them easier to use and mainstream
• Apps designed to tolerate node failure
Bidding strategies
Source: https://aws.amazon.com/blogs/aws/focusing-on-spot-instances-lets-talk-about-best-practices/
• Capacity pool (CP)
• Logical container
• Shares same AZ, region, OS
and instance type
• Best practices
• Build Price-Aware Applications
• Check the Price History
• Use Multiple Capacity Pools
Amazon EC2 Spot Instances
Amazon EC2 Spot Instances
Amazon EC2
Spot Instance
Pricing History
Region:
Oregon
(us-west-2)
Google Cloud
~80% flat
discount on list
price
Excess/surplus
capacity (not a
secondary
market)
Benefits
Specific applications & use cases that benefit this scheme
• Elastic / bursting applications
• Stateless compute intensive tasks (HPC workloads)
• Highly available clustered apps
• Horizontal node auto-scaling scenarios
Implementation Mechanisms - GKE
• Use multiple NodePools for a given cluster
• At least one node pool without preemptible instances
• NodePools can be added to a cluster and scaled dynamically
• Auto-upgrade and auto-repair support for ContainerOS image
today.
• Future-proofing using 0 size node pool
Implementation Mechanisms - GKE
Two pools in the cluster - A fixed pool and a default-pool that has preemptible nodes enabled
Implementation Mechanisms - kops
• Open Source project - https://github.com/kubernetes/kops
• Supports deploying K8s clusters on AWS & GCE
• Supports Spot Instance for AWS
• Concept of Instance Groups (IG)
• Master IG
• Multiple node IG (workers)
• Each IG backed by an Auto Scaling Group (ASG)
• Ability to auto-scale and heal instance terminations
Implementation Mechanisms - kops
Implementation Mechanisms - kops
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: arun-kops02.k8s.local
name: nodes
spec:
image: kope.io/k8s-1.7-debian-jessie-amd64-hvm-ebs-2017-07-28
machineType: t2.medium
maxPrice: "0.0630"
maxSize: 2
minSize: 2
role: Node
subnets:
- us-west-2a
Implementation Mechanisms - kops
Demo
1. Cluster creating using kops on AWS
2. Horizontal pod auto scaling + Node autoscaling on GKE
(Cloud bursting use-case)
Application scheduling considerations
• Stateless applications vs stateful applications
• Minimum service availability
• Application replica distribution across nodes
• Node failure rescheduling considerations
• Moving pods to same pool/different node pool
• Specific hardware requirements, eg. GPU processing, network
Supporting K8s mechanisms
NodeSelector
• Preemptible VMs
come with a default
label
• NodePools also have
labels that can be
used for scheduling
decisions
cloud.google.com/gke-preempt
ible=true
Supporting K8s mechanisms
• Affinity: Preferred
preemptible resource for
pod but not mandatory
• Anti-affinity: Preferred
fixed node resource for
pod but not mandatory
Label:
failure-domain.beta.kubernetes.io/zone
Affinity type:
preferredDuringSchedulingIgnoredDuring
Execution
Using node affinity & anti-affinity with spot instances
Demo
Application availability - nodeSelector and affinity using a GKE
cluster
Case Study / Experiment
CloudProvider: GKE
Resource pool: 2 node cluster
% split of preemptive and fixed nodes: 50%
K8s version: 1.8.3-gke.0
Duration: 12 days
Active workload: none
Case Study / Experiment
Observations
● Preemptible instance
price fluctuation very low
to none
● trend/average instance
lifetime ~24 hrs
● Does not support
shutdown hooks today
● Cannot turn off/on
preemptive instances
after Node Pool creation
Case Study / Experiment
Total Costs: $16.02
Cost Analysis
Case Study / Experiment
Total costs without preemptible instances: $24.65 (13.44 * 2 -
1.97 - .26)
Total Savings: $8.63 ($24.65 - $16.02)
Extrapolating to 100 node cluster, savings for a year would be:
(100 / 2) * 8.63 * (365 / 12) = $13,126.23
Since our costing was for 2 nodes run for twelve days with 50%
preemptive instances (50 fixed price nodes + 50 preemptible
nodes)**
Thank You
• Slides
• https://goo.gl/LbEc1u
• For more info
• www.platform9.com
• Please take a moment to provide your feedback
• https://sayat.me/arunsriraman/

More Related Content

What's hot

DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...
DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...
DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...Docker, Inc.
 
How to contribute to cloud native computing foundation (CNCF)
How to contribute to cloud native computing foundation (CNCF)How to contribute to cloud native computing foundation (CNCF)
How to contribute to cloud native computing foundation (CNCF)Krishna-Kumar
 
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLINGKUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLINGCodeOps Technologies LLP
 
Building Developer Pipelines with PKS, Harbor, Clair, and Concourse
Building Developer Pipelines with PKS, Harbor, Clair, and ConcourseBuilding Developer Pipelines with PKS, Harbor, Clair, and Concourse
Building Developer Pipelines with PKS, Harbor, Clair, and ConcourseVMware Tanzu
 
[Lakmal] Automate Microservice to API
[Lakmal] Automate Microservice to API[Lakmal] Automate Microservice to API
[Lakmal] Automate Microservice to APILakmal Warusawithana
 
Introduction to container mangement
Introduction to container mangementIntroduction to container mangement
Introduction to container mangementMartin Marcher
 
Dev opsec dockerimage_patch_n_lifecyclemanagement_2019
Dev opsec dockerimage_patch_n_lifecyclemanagement_2019Dev opsec dockerimage_patch_n_lifecyclemanagement_2019
Dev opsec dockerimage_patch_n_lifecyclemanagement_2019kanedafromparis
 
How are containers enabling 20th Century Fox to release the next great movie?
How are containers enabling 20th Century Fox to release the next great movie?How are containers enabling 20th Century Fox to release the next great movie?
How are containers enabling 20th Century Fox to release the next great movie?Docker, Inc.
 
How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedShikha Srivastava
 
DCSF 19 Developing Apps with Containers, Functions and Cloud Services
DCSF 19 Developing Apps with Containers, Functions and Cloud ServicesDCSF 19 Developing Apps with Containers, Functions and Cloud Services
DCSF 19 Developing Apps with Containers, Functions and Cloud ServicesDocker, Inc.
 
Docker - A curtain raiser to the Container world
Docker - A curtain raiser to the Container worldDocker - A curtain raiser to the Container world
Docker - A curtain raiser to the Container worldzekeLabs Technologies
 
Kubernetes overview 101
Kubernetes overview 101Kubernetes overview 101
Kubernetes overview 101Boskey Savla
 
Delivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd PfefferDelivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd PfefferVMware Tanzu
 
Multi-cloud Kubernetes BCDR with Velero
Multi-cloud Kubernetes BCDR with VeleroMulti-cloud Kubernetes BCDR with Velero
Multi-cloud Kubernetes BCDR with VeleroKublr
 
Webinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwareWebinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwarePlatform9
 
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
Canary Releases on Kubernetes w/ Spinnaker, Istio, and PrometheusCanary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
Canary Releases on Kubernetes w/ Spinnaker, Istio, and PrometheusKublr
 
Containers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
Containers: Life Beyond Microservices? by Sushil Kumar, Robin SystemsContainers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
Containers: Life Beyond Microservices? by Sushil Kumar, Robin SystemsDocker, Inc.
 
Using csi snapshot.pptx
Using csi snapshot.pptxUsing csi snapshot.pptx
Using csi snapshot.pptxLibbySchulze
 
Openstack days sv building highly available services using kubernetes (preso)
Openstack days sv   building highly available services using kubernetes (preso)Openstack days sv   building highly available services using kubernetes (preso)
Openstack days sv building highly available services using kubernetes (preso)Allan Naim
 

What's hot (20)

DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...
DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...
DCEU 18: Desigual Transforms the In-Store Experience with Docker Enterprise C...
 
How to contribute to cloud native computing foundation (CNCF)
How to contribute to cloud native computing foundation (CNCF)How to contribute to cloud native computing foundation (CNCF)
How to contribute to cloud native computing foundation (CNCF)
 
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLINGKUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
 
Building Developer Pipelines with PKS, Harbor, Clair, and Concourse
Building Developer Pipelines with PKS, Harbor, Clair, and ConcourseBuilding Developer Pipelines with PKS, Harbor, Clair, and Concourse
Building Developer Pipelines with PKS, Harbor, Clair, and Concourse
 
[Lakmal] Automate Microservice to API
[Lakmal] Automate Microservice to API[Lakmal] Automate Microservice to API
[Lakmal] Automate Microservice to API
 
Introduction to container mangement
Introduction to container mangementIntroduction to container mangement
Introduction to container mangement
 
Dev opsec dockerimage_patch_n_lifecyclemanagement_2019
Dev opsec dockerimage_patch_n_lifecyclemanagement_2019Dev opsec dockerimage_patch_n_lifecyclemanagement_2019
Dev opsec dockerimage_patch_n_lifecyclemanagement_2019
 
How are containers enabling 20th Century Fox to release the next great movie?
How are containers enabling 20th Century Fox to release the next great movie?How are containers enabling 20th Century Fox to release the next great movie?
How are containers enabling 20th Century Fox to release the next great movie?
 
How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updated
 
DCSF 19 Developing Apps with Containers, Functions and Cloud Services
DCSF 19 Developing Apps with Containers, Functions and Cloud ServicesDCSF 19 Developing Apps with Containers, Functions and Cloud Services
DCSF 19 Developing Apps with Containers, Functions and Cloud Services
 
Docker - A curtain raiser to the Container world
Docker - A curtain raiser to the Container worldDocker - A curtain raiser to the Container world
Docker - A curtain raiser to the Container world
 
Kubernetes overview 101
Kubernetes overview 101Kubernetes overview 101
Kubernetes overview 101
 
Delivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd PfefferDelivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd Pfeffer
 
Multi-cloud Kubernetes BCDR with Velero
Multi-cloud Kubernetes BCDR with VeleroMulti-cloud Kubernetes BCDR with Velero
Multi-cloud Kubernetes BCDR with Velero
 
Webinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwareWebinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMware
 
OpenShift Meetup - Red Hat OpenShift Container Storage explained
OpenShift Meetup - Red Hat OpenShift Container Storage explainedOpenShift Meetup - Red Hat OpenShift Container Storage explained
OpenShift Meetup - Red Hat OpenShift Container Storage explained
 
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
Canary Releases on Kubernetes w/ Spinnaker, Istio, and PrometheusCanary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
 
Containers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
Containers: Life Beyond Microservices? by Sushil Kumar, Robin SystemsContainers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
Containers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
 
Using csi snapshot.pptx
Using csi snapshot.pptxUsing csi snapshot.pptx
Using csi snapshot.pptx
 
Openstack days sv building highly available services using kubernetes (preso)
Openstack days sv   building highly available services using kubernetes (preso)Openstack days sv   building highly available services using kubernetes (preso)
Openstack days sv building highly available services using kubernetes (preso)
 

Similar to Cost-effective Compute Clusters with Spot and Pre-emptible Instances - KubeCon 2017

Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...
Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...
Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...Amazon Web Services
 
Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)sriram_rajan
 
High Performance Computing with AWS
High Performance Computing with AWSHigh Performance Computing with AWS
High Performance Computing with AWSAmazon Web Services
 
Kubernetes – An open platform for container orchestration
Kubernetes – An open platform for container orchestrationKubernetes – An open platform for container orchestration
Kubernetes – An open platform for container orchestrationinovex GmbH
 
Google Kubernetes Engine Deep Dive Meetup
Google Kubernetes Engine Deep Dive MeetupGoogle Kubernetes Engine Deep Dive Meetup
Google Kubernetes Engine Deep Dive MeetupIftach Schonbaum
 
Docker clusters on AWS with Amazon ECS and Kubernetes
Docker clusters on AWS with Amazon ECS and KubernetesDocker clusters on AWS with Amazon ECS and Kubernetes
Docker clusters on AWS with Amazon ECS and KubernetesJulien SIMON
 
A journey from mesos to kubernetes in AWS!
A journey from mesos to kubernetes in AWS!A journey from mesos to kubernetes in AWS!
A journey from mesos to kubernetes in AWS!Eric Liu
 
Private Cloud with Open Stack, Docker
Private Cloud with Open Stack, DockerPrivate Cloud with Open Stack, Docker
Private Cloud with Open Stack, DockerDavinder Kohli
 
ECS and Docker at Okta
ECS and Docker at OktaECS and Docker at Okta
ECS and Docker at OktaJon Todd
 
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 RaleighKube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 RaleighBrad Topol
 
AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...
AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...
AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...Amazon Web Services
 
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...NETWAYS
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDStfalcon Meetups
 
Cluster api devopscon berlin
Cluster api devopscon berlinCluster api devopscon berlin
Cluster api devopscon berlinGuus van Weelden
 
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
 
Cloud Native Camel Design Patterns
Cloud Native Camel Design PatternsCloud Native Camel Design Patterns
Cloud Native Camel Design PatternsBilgin Ibryam
 
Re invent announcements_2016_hcls_use_cases_mchampion
Re invent announcements_2016_hcls_use_cases_mchampionRe invent announcements_2016_hcls_use_cases_mchampion
Re invent announcements_2016_hcls_use_cases_mchampionMia D Champion
 
Kubernetes extensibility: crd & operators
Kubernetes extensibility: crd & operators Kubernetes extensibility: crd & operators
Kubernetes extensibility: crd & operators Giacomo Tirabassi
 

Similar to Cost-effective Compute Clusters with Spot and Pre-emptible Instances - KubeCon 2017 (20)

Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...
Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...
Building HPC Clusters as Code in the (Almost) Infinite Cloud | AWS Public Sec...
 
Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)
 
High Performance Computing with AWS
High Performance Computing with AWSHigh Performance Computing with AWS
High Performance Computing with AWS
 
Kubernetes – An open platform for container orchestration
Kubernetes – An open platform for container orchestrationKubernetes – An open platform for container orchestration
Kubernetes – An open platform for container orchestration
 
Google Kubernetes Engine Deep Dive Meetup
Google Kubernetes Engine Deep Dive MeetupGoogle Kubernetes Engine Deep Dive Meetup
Google Kubernetes Engine Deep Dive Meetup
 
AKS components
AKS componentsAKS components
AKS components
 
Docker clusters on AWS with Amazon ECS and Kubernetes
Docker clusters on AWS with Amazon ECS and KubernetesDocker clusters on AWS with Amazon ECS and Kubernetes
Docker clusters on AWS with Amazon ECS and Kubernetes
 
A journey from mesos to kubernetes in AWS!
A journey from mesos to kubernetes in AWS!A journey from mesos to kubernetes in AWS!
A journey from mesos to kubernetes in AWS!
 
Private Cloud with Open Stack, Docker
Private Cloud with Open Stack, DockerPrivate Cloud with Open Stack, Docker
Private Cloud with Open Stack, Docker
 
ECS and Docker at Okta
ECS and Docker at OktaECS and Docker at Okta
ECS and Docker at Okta
 
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 RaleighKube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
 
AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...
AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...
AWS re:Invent 2016: Building HPC Clusters as Code in the (Almost) Infinite Cl...
 
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
 
Cluster api devopscon berlin
Cluster api devopscon berlinCluster api devopscon berlin
Cluster api devopscon berlin
 
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
 
Cloud Native Camel Design Patterns
Cloud Native Camel Design PatternsCloud Native Camel Design Patterns
Cloud Native Camel Design Patterns
 
Re invent announcements_2016_hcls_use_cases_mchampion
Re invent announcements_2016_hcls_use_cases_mchampionRe invent announcements_2016_hcls_use_cases_mchampion
Re invent announcements_2016_hcls_use_cases_mchampion
 
Tech4Africa 2014
Tech4Africa 2014Tech4Africa 2014
Tech4Africa 2014
 
Kubernetes extensibility: crd & operators
Kubernetes extensibility: crd & operators Kubernetes extensibility: crd & operators
Kubernetes extensibility: crd & operators
 

More from Platform9

Migration from AWS to Enterprise Data Centers: 5 Top Considerations
Migration from AWS to Enterprise Data Centers: 5 Top ConsiderationsMigration from AWS to Enterprise Data Centers: 5 Top Considerations
Migration from AWS to Enterprise Data Centers: 5 Top ConsiderationsPlatform9
 
OpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid Cloud
OpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid CloudOpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid Cloud
OpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid CloudPlatform9
 
New Fission Capabilities Accelerate Deployment of Serverless Computing
New Fission Capabilities Accelerate Deployment of Serverless ComputingNew Fission Capabilities Accelerate Deployment of Serverless Computing
New Fission Capabilities Accelerate Deployment of Serverless ComputingPlatform9
 
What's New in Platform9's Managed Kubernetes v3.2
What's New in Platform9's Managed Kubernetes v3.2What's New in Platform9's Managed Kubernetes v3.2
What's New in Platform9's Managed Kubernetes v3.2Platform9
 
Why kubernetes matters
Why kubernetes mattersWhy kubernetes matters
Why kubernetes mattersPlatform9
 
Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.Platform9
 
Managing vSphere Across Multiple Regions and Multiple vCenters
Managing vSphere Across Multiple Regions and Multiple vCenters Managing vSphere Across Multiple Regions and Multiple vCenters
Managing vSphere Across Multiple Regions and Multiple vCenters Platform9
 
Intro to Platform9: Private Clouds Made Easy
Intro to Platform9: Private Clouds Made EasyIntro to Platform9: Private Clouds Made Easy
Intro to Platform9: Private Clouds Made EasyPlatform9
 
VMware Private Clouds: Charting a path to success
VMware Private Clouds: Charting a path to successVMware Private Clouds: Charting a path to success
VMware Private Clouds: Charting a path to successPlatform9
 
Upgrading OpenStack? Avoid these 3 Common Pitfalls
Upgrading OpenStack? Avoid these 3 Common PitfallsUpgrading OpenStack? Avoid these 3 Common Pitfalls
Upgrading OpenStack? Avoid these 3 Common PitfallsPlatform9
 
SolidFire + Platform9: Simply Faster OpenStack
SolidFire + Platform9: Simply Faster OpenStackSolidFire + Platform9: Simply Faster OpenStack
SolidFire + Platform9: Simply Faster OpenStackPlatform9
 
Self-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSphereSelf-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSpherePlatform9
 
Building Cloud-Native Applications with OpenStack
Building Cloud-Native Applications with OpenStack Building Cloud-Native Applications with OpenStack
Building Cloud-Native Applications with OpenStack Platform9
 
Lessons from the Trenches: Monitoring your OpenStack Cloud
Lessons from the Trenches: Monitoring your OpenStack Cloud Lessons from the Trenches: Monitoring your OpenStack Cloud
Lessons from the Trenches: Monitoring your OpenStack Cloud Platform9
 
7-Step Recipe For Continuous Integration Using OpenStack - Part 2
7-Step Recipe For Continuous Integration Using OpenStack - Part 27-Step Recipe For Continuous Integration Using OpenStack - Part 2
7-Step Recipe For Continuous Integration Using OpenStack - Part 2Platform9
 
7-Step Recipe For Continuous Integration Using OpenStack - Part 1
7-Step Recipe For Continuous Integration Using OpenStack - Part 17-Step Recipe For Continuous Integration Using OpenStack - Part 1
7-Step Recipe For Continuous Integration Using OpenStack - Part 1Platform9
 
OpenStack Webinar: Melting Pot in Virtualized Data Centers
OpenStack Webinar: Melting Pot in Virtualized Data CentersOpenStack Webinar: Melting Pot in Virtualized Data Centers
OpenStack Webinar: Melting Pot in Virtualized Data CentersPlatform9
 
Webinar: OpenStack Accelerates Software Development
Webinar: OpenStack Accelerates Software DevelopmentWebinar: OpenStack Accelerates Software Development
Webinar: OpenStack Accelerates Software DevelopmentPlatform9
 
Webinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for ProductionWebinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for ProductionPlatform9
 
Webinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVMWebinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVMPlatform9
 

More from Platform9 (20)

Migration from AWS to Enterprise Data Centers: 5 Top Considerations
Migration from AWS to Enterprise Data Centers: 5 Top ConsiderationsMigration from AWS to Enterprise Data Centers: 5 Top Considerations
Migration from AWS to Enterprise Data Centers: 5 Top Considerations
 
OpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid Cloud
OpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid CloudOpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid Cloud
OpenStack Omni, the Open-Source Alternative to VMware + AWS for Hybrid Cloud
 
New Fission Capabilities Accelerate Deployment of Serverless Computing
New Fission Capabilities Accelerate Deployment of Serverless ComputingNew Fission Capabilities Accelerate Deployment of Serverless Computing
New Fission Capabilities Accelerate Deployment of Serverless Computing
 
What's New in Platform9's Managed Kubernetes v3.2
What's New in Platform9's Managed Kubernetes v3.2What's New in Platform9's Managed Kubernetes v3.2
What's New in Platform9's Managed Kubernetes v3.2
 
Why kubernetes matters
Why kubernetes mattersWhy kubernetes matters
Why kubernetes matters
 
Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.
 
Managing vSphere Across Multiple Regions and Multiple vCenters
Managing vSphere Across Multiple Regions and Multiple vCenters Managing vSphere Across Multiple Regions and Multiple vCenters
Managing vSphere Across Multiple Regions and Multiple vCenters
 
Intro to Platform9: Private Clouds Made Easy
Intro to Platform9: Private Clouds Made EasyIntro to Platform9: Private Clouds Made Easy
Intro to Platform9: Private Clouds Made Easy
 
VMware Private Clouds: Charting a path to success
VMware Private Clouds: Charting a path to successVMware Private Clouds: Charting a path to success
VMware Private Clouds: Charting a path to success
 
Upgrading OpenStack? Avoid these 3 Common Pitfalls
Upgrading OpenStack? Avoid these 3 Common PitfallsUpgrading OpenStack? Avoid these 3 Common Pitfalls
Upgrading OpenStack? Avoid these 3 Common Pitfalls
 
SolidFire + Platform9: Simply Faster OpenStack
SolidFire + Platform9: Simply Faster OpenStackSolidFire + Platform9: Simply Faster OpenStack
SolidFire + Platform9: Simply Faster OpenStack
 
Self-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSphereSelf-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSphere
 
Building Cloud-Native Applications with OpenStack
Building Cloud-Native Applications with OpenStack Building Cloud-Native Applications with OpenStack
Building Cloud-Native Applications with OpenStack
 
Lessons from the Trenches: Monitoring your OpenStack Cloud
Lessons from the Trenches: Monitoring your OpenStack Cloud Lessons from the Trenches: Monitoring your OpenStack Cloud
Lessons from the Trenches: Monitoring your OpenStack Cloud
 
7-Step Recipe For Continuous Integration Using OpenStack - Part 2
7-Step Recipe For Continuous Integration Using OpenStack - Part 27-Step Recipe For Continuous Integration Using OpenStack - Part 2
7-Step Recipe For Continuous Integration Using OpenStack - Part 2
 
7-Step Recipe For Continuous Integration Using OpenStack - Part 1
7-Step Recipe For Continuous Integration Using OpenStack - Part 17-Step Recipe For Continuous Integration Using OpenStack - Part 1
7-Step Recipe For Continuous Integration Using OpenStack - Part 1
 
OpenStack Webinar: Melting Pot in Virtualized Data Centers
OpenStack Webinar: Melting Pot in Virtualized Data CentersOpenStack Webinar: Melting Pot in Virtualized Data Centers
OpenStack Webinar: Melting Pot in Virtualized Data Centers
 
Webinar: OpenStack Accelerates Software Development
Webinar: OpenStack Accelerates Software DevelopmentWebinar: OpenStack Accelerates Software Development
Webinar: OpenStack Accelerates Software Development
 
Webinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for ProductionWebinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for Production
 
Webinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVMWebinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVM
 

Recently uploaded

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 

Cost-effective Compute Clusters with Spot and Pre-emptible Instances - KubeCon 2017

  • 1. Cost-effective Compute Clusters with Spot and Preemptible Instances
  • 2. Presenters Slides https://goo.gl/LbEc1u Arun Sriraman Software Engineer Platform9 Systems Bich Le Co-founder & Chief Architect Platform9 Systems
  • 4. Agenda • Motivation • Bidding Strategies • Implementation strategies • Supporting K8s mechanisms • Application Scheduling considerations • Case Study • Demo
  • 5. Introducing spot & preemptible instances • Cheaper instances (60-80% savings) • But with a catch: can be terminated any time • AWS: random • Google Cloud: within 24 hours • Historically requires some skill • But Kubernetes makes them easier to use and mainstream • Apps designed to tolerate node failure
  • 6. Bidding strategies Source: https://aws.amazon.com/blogs/aws/focusing-on-spot-instances-lets-talk-about-best-practices/ • Capacity pool (CP) • Logical container • Shares same AZ, region, OS and instance type • Best practices • Build Price-Aware Applications • Check the Price History • Use Multiple Capacity Pools
  • 7. Amazon EC2 Spot Instances
  • 8. Amazon EC2 Spot Instances Amazon EC2 Spot Instance Pricing History Region: Oregon (us-west-2)
  • 9. Google Cloud ~80% flat discount on list price Excess/surplus capacity (not a secondary market)
  • 10. Benefits Specific applications & use cases that benefit this scheme • Elastic / bursting applications • Stateless compute intensive tasks (HPC workloads) • Highly available clustered apps • Horizontal node auto-scaling scenarios
  • 11. Implementation Mechanisms - GKE • Use multiple NodePools for a given cluster • At least one node pool without preemptible instances • NodePools can be added to a cluster and scaled dynamically • Auto-upgrade and auto-repair support for ContainerOS image today. • Future-proofing using 0 size node pool
  • 12. Implementation Mechanisms - GKE Two pools in the cluster - A fixed pool and a default-pool that has preemptible nodes enabled
  • 13. Implementation Mechanisms - kops • Open Source project - https://github.com/kubernetes/kops • Supports deploying K8s clusters on AWS & GCE • Supports Spot Instance for AWS • Concept of Instance Groups (IG) • Master IG • Multiple node IG (workers) • Each IG backed by an Auto Scaling Group (ASG) • Ability to auto-scale and heal instance terminations
  • 15. Implementation Mechanisms - kops apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: arun-kops02.k8s.local name: nodes spec: image: kope.io/k8s-1.7-debian-jessie-amd64-hvm-ebs-2017-07-28 machineType: t2.medium maxPrice: "0.0630" maxSize: 2 minSize: 2 role: Node subnets: - us-west-2a
  • 17. Demo 1. Cluster creating using kops on AWS 2. Horizontal pod auto scaling + Node autoscaling on GKE (Cloud bursting use-case)
  • 18. Application scheduling considerations • Stateless applications vs stateful applications • Minimum service availability • Application replica distribution across nodes • Node failure rescheduling considerations • Moving pods to same pool/different node pool • Specific hardware requirements, eg. GPU processing, network
  • 19. Supporting K8s mechanisms NodeSelector • Preemptible VMs come with a default label • NodePools also have labels that can be used for scheduling decisions cloud.google.com/gke-preempt ible=true
  • 20. Supporting K8s mechanisms • Affinity: Preferred preemptible resource for pod but not mandatory • Anti-affinity: Preferred fixed node resource for pod but not mandatory Label: failure-domain.beta.kubernetes.io/zone Affinity type: preferredDuringSchedulingIgnoredDuring Execution Using node affinity & anti-affinity with spot instances
  • 21. Demo Application availability - nodeSelector and affinity using a GKE cluster
  • 22. Case Study / Experiment CloudProvider: GKE Resource pool: 2 node cluster % split of preemptive and fixed nodes: 50% K8s version: 1.8.3-gke.0 Duration: 12 days Active workload: none
  • 23. Case Study / Experiment Observations ● Preemptible instance price fluctuation very low to none ● trend/average instance lifetime ~24 hrs ● Does not support shutdown hooks today ● Cannot turn off/on preemptive instances after Node Pool creation
  • 24. Case Study / Experiment Total Costs: $16.02 Cost Analysis
  • 25. Case Study / Experiment Total costs without preemptible instances: $24.65 (13.44 * 2 - 1.97 - .26) Total Savings: $8.63 ($24.65 - $16.02) Extrapolating to 100 node cluster, savings for a year would be: (100 / 2) * 8.63 * (365 / 12) = $13,126.23 Since our costing was for 2 nodes run for twelve days with 50% preemptive instances (50 fixed price nodes + 50 preemptible nodes)**
  • 26. Thank You • Slides • https://goo.gl/LbEc1u • For more info • www.platform9.com • Please take a moment to provide your feedback • https://sayat.me/arunsriraman/