SlideShare a Scribd company logo
1 of 49
Download to read offline
JENKINS ON SPOT
Mykola Marzhan
Version: 08.10.18
Mykola Marzhan

Release Engineer, Percona
AWS Certified Solutions
Architect - Professional
I have been working as Release
Engineer for 10 years.
NOW MASTER,

WORKERS LATER
JENKINS MASTER

ON LIGHTSAIL INSTANCE
LIGHTSAIL LIMITATIONS
➤ Cannot run in VPC, Subnet
➤ Cannot assign IAM Role,
Tags, Route 53
➤ Cannot manage with
CloudFormation
➤ Terraform cannot manage
firewall and additional
storage
ON-DEMAND VS

SPOT INSTANCES
JENKINS MASTER

ON SPOT INSTANCE
MURDERED DUE TO

PRICE, CAPACITY,
CONSTRAINTS }
FREQUENCY OF
INTERRUPTION
JENKINS MASTER
AMAZON

ELASTIC FILE SYSTEM
JENKINS MASTER
EFS PERFORMANCE
MiB/s Operations/s AVG latency (ms)
Sequential read 122,96 7869,10 0,126
Random read 21,13 1352,28 0,737
Sequential write 1,95 124,72 8,026
Sequential rewrite 1,99 127,33 7,869
Random write 1,47 94,14 10,616
Random rewrite 1,55 98,90 4,044
ENHANCED NETWORKING
FOR EC2 INSTANCES
JENKINS MASTER
EFS PERFORMANCE
MiB/s Operations/s AVG latency (ms)
Sequential read 122,96 +30% 7869,10 +30% 0,126
Random read 21,13 +30% 1352,28 +30% 0,737
Sequential write 1,95 +30% 124,72 +30% 8,026
Sequential rewrite 1,99 +30% 127,33 +30% 7,869
Random write 1,47 +30% 94,14 +30% 10,616
Random rewrite 1,55 +30% 98,90 +30% 4,044
EFS LIMITATIONS
➤ EFS not suitable for many
small files and one-thread
applications
➤ All artifacts to S3
➤ Tens of jobs/pipelines
➤ Few builds to keep
➤ Don’t “stash” files

(extremely slow)
EFS LIMITATIONS
➤ EFS not suitable for many
small files and one-thread
applications
➤ All artifacts to S3
➤ Tens of jobs/pipelines
➤ Few builds to keep
➤ Don’t “stash” files

(extremely slow)
EFS LIMITATIONS
➤ EFS not suitable for many
small files and one-thread
applications
➤ All artifacts to S3
➤ Tens of jobs/pipelines
➤ Few builds to keep
➤ Don’t “stash” files

(extremely slow)
EFS LIMITATIONS
➤ EFS not suitable for many
small files and one-thread
applications
➤ All artifacts to S3
➤ Tens of jobs/pipelines
➤ Few builds to keep
➤ Don’t “stash” files

(extremely slow)
EFS LIMITATIONS
➤ EFS not suitable for many
small files and one-thread
applications
➤ All artifacts to S3
➤ Tens of jobs/pipelines
➤ Few builds to keep
➤ Don’t “stash” files

(extremely slow)
AMAZON

ELASTIC BLOCK STORE
JENKINS MASTER
2-MINUTE INSTANCE
TERMINATION NOTICE
JENKINS MASTER
EBS LIMITATIONS
➤ EBS limits to use one AZ
AWS SPOT FLEET
JENKINS MASTER
PIPELINES IN
MAX_SURVIVABILITY
JENKINS MASTER
NO EXECUTORS ON
MASTER NODE
JENKINS MASTER
NO WEB-HOOKS
JENKINS MASTER
use pollCSM trigger
ELASTIC IP
JENKINS MASTER
JENKINS WORKERS

ON SPOT INSTANCES
Artwork author: Ksenia Nenasheva
EC2 FLEET JENKINS PLUGIN
➤ Official AWS plugin
➤ Configuration on AWS side
➤ Spot Fleet can start instances in different AZs
➤ Starts two times more instances than needed (PR#29)
➤ On scale-down AWS terminates instances under load
(issues#36)
➤ New Spot Fleet on changes
EC2 FLEET JENKINS PLUGIN
➤ Official AWS plugin
➤ Configuration on AWS side
➤ Spot Fleet can start instances in different AZs
➤ Starts two times more instances than needed (PR#29)
➤ On scale-down AWS terminates instances under load
(issues#36)
➤ New Spot Fleet on changes
EC2 FLEET JENKINS PLUGIN
➤ Official AWS plugin
➤ Configuration on AWS side
➤ Spot Fleet can start instances in different AZs
➤ Starts two times more instances than needed (PR#29)
➤ On scale-down AWS terminates instances under load
(issues#36)
➤ New Spot Fleet on changes
EC2 FLEET JENKINS PLUGIN
➤ Official AWS plugin
➤ Configuration on AWS side
➤ Spot Fleet can start instances in different AZs
➤ Starts two times more instances than needed (PR#29)
➤ On scale-down AWS terminates instances under load
(issues#36)
➤ New Spot Fleet on changes
EC2 FLEET JENKINS PLUGIN
➤ Official AWS plugin
➤ Configuration on AWS side
➤ Spot Fleet can start instances in different AZs
➤ Starts two times more instances than needed (PR#29)
➤ On scale-down AWS terminates instances under load
(issues#36)
➤ New Spot Fleet on changes
EC2 FLEET JENKINS PLUGIN
➤ Official AWS plugin
➤ Configuration on AWS side
➤ Spot Fleet can start instances in different AZs
➤ Starts two times more instances than needed (PR#29)
➤ On scale-down AWS terminates instances under load
(issues#36)
➤ New Spot Fleet on changes
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
AMAZON EC2 PLUGIN
➤ Most popular plugin
➤ Configuration on Jenkins side
➤ Possible to use external ssh process as transport
➤ Has init script which executed before agent start
➤ Used to starts instances one by one (fixed in 1.40)
➤ Instances cannot be started in different AZs
➤ Instance cap is tied to AMI (PR#274)
➤ Doesn’t tag instances correctly since 2013

(JENKINS-19058, JENKINS-39702)
JENKINS WORKER
RETRY }
EXPENSES
Master

USD/month
Worker
USD/month
PMM 47.59 11.07
PSMDB 33.12 45.03
XtraBackup 33.60 30.21
Percona Server 65.98 399.57
CLOUDFORMATION CONFIG
https://git.io/fxOZY
TERRAFORM CONFIG
https://git.io/fxO4Y
Mykola Marzhan

delgod@delgod.com

More Related Content

What's hot

HCL Sametime V11 installation - tips
HCL Sametime V11 installation - tipsHCL Sametime V11 installation - tips
HCL Sametime V11 installation - tipsAles Lichtenberg
 
Write microservice in golang
Write microservice in golangWrite microservice in golang
Write microservice in golangBo-Yi Wu
 
How to Create a Windows Server 2008 Virtual Lab Using VirtualBox
How to Create a Windows Server 2008 Virtual Lab Using VirtualBoxHow to Create a Windows Server 2008 Virtual Lab Using VirtualBox
How to Create a Windows Server 2008 Virtual Lab Using VirtualBoxRusty Painter
 
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...xKinAnx
 
How to monitor your micro-service with Prometheus?
How to monitor your micro-service with Prometheus?How to monitor your micro-service with Prometheus?
How to monitor your micro-service with Prometheus?Wojciech Barczyński
 
Webinar - Unbox GitLab CI/CD
Webinar - Unbox GitLab CI/CD Webinar - Unbox GitLab CI/CD
Webinar - Unbox GitLab CI/CD Annie Huang
 
Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...
Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...
Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...inside-BigData.com
 
Bp101-Can Domino Be Hacked
Bp101-Can Domino Be HackedBp101-Can Domino Be Hacked
Bp101-Can Domino Be HackedHoward Greenberg
 
Testando uma aplicação com Arquitetura Hexagonal e Spring Boot
Testando uma aplicação com Arquitetura Hexagonal e Spring BootTestando uma aplicação com Arquitetura Hexagonal e Spring Boot
Testando uma aplicação com Arquitetura Hexagonal e Spring BootHenrique Schmidt
 
System hardening - OS and Application
System hardening - OS and ApplicationSystem hardening - OS and Application
System hardening - OS and Applicationedavid2685
 
Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)
Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)
Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)Adin Ermie
 
Android Tamer: Virtual Machine for Android (Security) Professionals
Android Tamer: Virtual Machine for Android (Security) ProfessionalsAndroid Tamer: Virtual Machine for Android (Security) Professionals
Android Tamer: Virtual Machine for Android (Security) ProfessionalsAnant Shrivastava
 

What's hot (20)

HCL Sametime V11 installation - tips
HCL Sametime V11 installation - tipsHCL Sametime V11 installation - tips
HCL Sametime V11 installation - tips
 
Geb with spock
Geb with spockGeb with spock
Geb with spock
 
Linux And perl
Linux And perlLinux And perl
Linux And perl
 
Write microservice in golang
Write microservice in golangWrite microservice in golang
Write microservice in golang
 
How to Create a Windows Server 2008 Virtual Lab Using VirtualBox
How to Create a Windows Server 2008 Virtual Lab Using VirtualBoxHow to Create a Windows Server 2008 Virtual Lab Using VirtualBox
How to Create a Windows Server 2008 Virtual Lab Using VirtualBox
 
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
 
How to monitor your micro-service with Prometheus?
How to monitor your micro-service with Prometheus?How to monitor your micro-service with Prometheus?
How to monitor your micro-service with Prometheus?
 
Webinar - Unbox GitLab CI/CD
Webinar - Unbox GitLab CI/CD Webinar - Unbox GitLab CI/CD
Webinar - Unbox GitLab CI/CD
 
Grafana.pptx
Grafana.pptxGrafana.pptx
Grafana.pptx
 
Modern Python Testing
Modern Python TestingModern Python Testing
Modern Python Testing
 
Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...
Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...
Singularity: The Inner Workings of Securely Running User Containers on HPC Sy...
 
Nagios intro
Nagios intro Nagios intro
Nagios intro
 
Linux Programming
Linux ProgrammingLinux Programming
Linux Programming
 
Bp101-Can Domino Be Hacked
Bp101-Can Domino Be HackedBp101-Can Domino Be Hacked
Bp101-Can Domino Be Hacked
 
Ansible 101
Ansible 101Ansible 101
Ansible 101
 
Testando uma aplicação com Arquitetura Hexagonal e Spring Boot
Testando uma aplicação com Arquitetura Hexagonal e Spring BootTestando uma aplicação com Arquitetura Hexagonal e Spring Boot
Testando uma aplicação com Arquitetura Hexagonal e Spring Boot
 
Domino Adminblast
Domino AdminblastDomino Adminblast
Domino Adminblast
 
System hardening - OS and Application
System hardening - OS and ApplicationSystem hardening - OS and Application
System hardening - OS and Application
 
Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)
Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)
Infrastructure-as-Code (IaC) Using Terraform (Advanced Edition)
 
Android Tamer: Virtual Machine for Android (Security) Professionals
Android Tamer: Virtual Machine for Android (Security) ProfessionalsAndroid Tamer: Virtual Machine for Android (Security) Professionals
Android Tamer: Virtual Machine for Android (Security) Professionals
 

Similar to Jenkins on Spot: EC2 Fleet vs EC2 Plugins

AWS Lambda from the trenches
AWS Lambda from the trenchesAWS Lambda from the trenches
AWS Lambda from the trenchesYan Cui
 
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...Cloud Native Day Tel Aviv
 
Serverless in production, an experience report (CoDe-Conf)
Serverless in production, an experience report (CoDe-Conf)Serverless in production, an experience report (CoDe-Conf)
Serverless in production, an experience report (CoDe-Conf)Yan Cui
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...Amazon Web Services
 
GAM307_Ubisoft How For Honor Runs Using Amazon ECS
GAM307_Ubisoft How For Honor Runs Using Amazon ECSGAM307_Ubisoft How For Honor Runs Using Amazon ECS
GAM307_Ubisoft How For Honor Runs Using Amazon ECSAmazon Web Services
 
Getting Started with PoolParty and EC2
Getting Started with PoolParty and EC2Getting Started with PoolParty and EC2
Getting Started with PoolParty and EC2Nate Murray
 
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Arun Gupta
 
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
CI and CD at Scale: Scaling Jenkins with Docker and Apache MesosCI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
CI and CD at Scale: Scaling Jenkins with Docker and Apache MesosCarlos Sanchez
 
Ephemeral DevOps: Adventures in Managing Short-Lived Systems
Ephemeral DevOps: Adventures in Managing Short-Lived SystemsEphemeral DevOps: Adventures in Managing Short-Lived Systems
Ephemeral DevOps: Adventures in Managing Short-Lived SystemsPriyanka Aash
 
Machine learning at scale with aws sage maker
Machine learning at scale with aws sage makerMachine learning at scale with aws sage maker
Machine learning at scale with aws sage makerPhilipBasford
 
Phil Basford - machine learning at scale with aws sage maker
Phil Basford - machine learning at scale with aws sage makerPhil Basford - machine learning at scale with aws sage maker
Phil Basford - machine learning at scale with aws sage makerAWSCOMSUM
 
Delivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesDelivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesanynines GmbH
 
Testing Distributed Micro Services. Agile Testing Days 2017
Testing Distributed Micro Services. Agile Testing Days 2017Testing Distributed Micro Services. Agile Testing Days 2017
Testing Distributed Micro Services. Agile Testing Days 2017Carlos Sanchez
 
How Zalando runs Kubernetes clusters at scale on AWS - AWS re:Invent
How Zalando runs Kubernetes clusters at scale on AWS - AWS re:InventHow Zalando runs Kubernetes clusters at scale on AWS - AWS re:Invent
How Zalando runs Kubernetes clusters at scale on AWS - AWS re:InventHenning Jacobs
 
Deep Dive into AWS Fargate - CON333 - re:Invent 2017
Deep Dive into AWS Fargate - CON333 - re:Invent 2017Deep Dive into AWS Fargate - CON333 - re:Invent 2017
Deep Dive into AWS Fargate - CON333 - re:Invent 2017Amazon Web Services
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudIndicThreads
 
JFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudJFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudArun Gupta
 
Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds Arun Gupta
 

Similar to Jenkins on Spot: EC2 Fleet vs EC2 Plugins (20)

AWS Lambda from the trenches
AWS Lambda from the trenchesAWS Lambda from the trenches
AWS Lambda from the trenches
 
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
 
Serverless in production, an experience report (CoDe-Conf)
Serverless in production, an experience report (CoDe-Conf)Serverless in production, an experience report (CoDe-Conf)
Serverless in production, an experience report (CoDe-Conf)
 
Terraform
TerraformTerraform
Terraform
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
GAM307_Ubisoft How For Honor Runs Using Amazon ECS
GAM307_Ubisoft How For Honor Runs Using Amazon ECSGAM307_Ubisoft How For Honor Runs Using Amazon ECS
GAM307_Ubisoft How For Honor Runs Using Amazon ECS
 
Getting Started with PoolParty and EC2
Getting Started with PoolParty and EC2Getting Started with PoolParty and EC2
Getting Started with PoolParty and EC2
 
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
 
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
CI and CD at Scale: Scaling Jenkins with Docker and Apache MesosCI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
 
Ephemeral DevOps: Adventures in Managing Short-Lived Systems
Ephemeral DevOps: Adventures in Managing Short-Lived SystemsEphemeral DevOps: Adventures in Managing Short-Lived Systems
Ephemeral DevOps: Adventures in Managing Short-Lived Systems
 
Ruby Deployment
Ruby DeploymentRuby Deployment
Ruby Deployment
 
Machine learning at scale with aws sage maker
Machine learning at scale with aws sage makerMachine learning at scale with aws sage maker
Machine learning at scale with aws sage maker
 
Phil Basford - machine learning at scale with aws sage maker
Phil Basford - machine learning at scale with aws sage makerPhil Basford - machine learning at scale with aws sage maker
Phil Basford - machine learning at scale with aws sage maker
 
Delivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesDelivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anynines
 
Testing Distributed Micro Services. Agile Testing Days 2017
Testing Distributed Micro Services. Agile Testing Days 2017Testing Distributed Micro Services. Agile Testing Days 2017
Testing Distributed Micro Services. Agile Testing Days 2017
 
How Zalando runs Kubernetes clusters at scale on AWS - AWS re:Invent
How Zalando runs Kubernetes clusters at scale on AWS - AWS re:InventHow Zalando runs Kubernetes clusters at scale on AWS - AWS re:Invent
How Zalando runs Kubernetes clusters at scale on AWS - AWS re:Invent
 
Deep Dive into AWS Fargate - CON333 - re:Invent 2017
Deep Dive into AWS Fargate - CON333 - re:Invent 2017Deep Dive into AWS Fargate - CON333 - re:Invent 2017
Deep Dive into AWS Fargate - CON333 - re:Invent 2017
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the Cloud
 
JFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudJFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the Cloud
 
Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds
 

More from Dariia Seimova

Chris Homer - Moving the entire stack to k8s within a year – lessons learned
Chris Homer - Moving the entire stack to k8s within a year – lessons learnedChris Homer - Moving the entire stack to k8s within a year – lessons learned
Chris Homer - Moving the entire stack to k8s within a year – lessons learnedDariia Seimova
 
juliya tkachova - dev ops on scale from philosophy to toolset
juliya tkachova - dev ops on scale from philosophy to toolsetjuliya tkachova - dev ops on scale from philosophy to toolset
juliya tkachova - dev ops on scale from philosophy to toolsetDariia Seimova
 
rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...
rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...
rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...Dariia Seimova
 
ostap soroka - aws architecture and a human body
ostap soroka - aws architecture and a human bodyostap soroka - aws architecture and a human body
ostap soroka - aws architecture and a human bodyDariia Seimova
 
victoriia basarab - special aspects of dev ops platform development
victoriia basarab - special aspects of dev ops platform developmentvictoriia basarab - special aspects of dev ops platform development
victoriia basarab - special aspects of dev ops platform developmentDariia Seimova
 
sveta smirnova - my sql performance schema in action
sveta smirnova - my sql performance schema in actionsveta smirnova - my sql performance schema in action
sveta smirnova - my sql performance schema in actionDariia Seimova
 
faisal mushtaq - an enterprise cloud cost management framework
faisal mushtaq - an enterprise cloud cost management frameworkfaisal mushtaq - an enterprise cloud cost management framework
faisal mushtaq - an enterprise cloud cost management frameworkDariia Seimova
 
maksym vlasov - culture of git as roots of your ci
maksym vlasov - culture of git as roots of your cimaksym vlasov - culture of git as roots of your ci
maksym vlasov - culture of git as roots of your ciDariia Seimova
 
vitaly davidoff - end 2 end containers secure sdlc process
vitaly davidoff - end 2 end containers secure sdlc processvitaly davidoff - end 2 end containers secure sdlc process
vitaly davidoff - end 2 end containers secure sdlc processDariia Seimova
 
yegor maksymchuk - open shift as a cloud for data science
yegor maksymchuk - open shift as a cloud for data scienceyegor maksymchuk - open shift as a cloud for data science
yegor maksymchuk - open shift as a cloud for data scienceDariia Seimova
 

More from Dariia Seimova (10)

Chris Homer - Moving the entire stack to k8s within a year – lessons learned
Chris Homer - Moving the entire stack to k8s within a year – lessons learnedChris Homer - Moving the entire stack to k8s within a year – lessons learned
Chris Homer - Moving the entire stack to k8s within a year – lessons learned
 
juliya tkachova - dev ops on scale from philosophy to toolset
juliya tkachova - dev ops on scale from philosophy to toolsetjuliya tkachova - dev ops on scale from philosophy to toolset
juliya tkachova - dev ops on scale from philosophy to toolset
 
rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...
rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...
rohit sharma - dev ops virtual assistant - automate devops stuffs using nlp a...
 
ostap soroka - aws architecture and a human body
ostap soroka - aws architecture and a human bodyostap soroka - aws architecture and a human body
ostap soroka - aws architecture and a human body
 
victoriia basarab - special aspects of dev ops platform development
victoriia basarab - special aspects of dev ops platform developmentvictoriia basarab - special aspects of dev ops platform development
victoriia basarab - special aspects of dev ops platform development
 
sveta smirnova - my sql performance schema in action
sveta smirnova - my sql performance schema in actionsveta smirnova - my sql performance schema in action
sveta smirnova - my sql performance schema in action
 
faisal mushtaq - an enterprise cloud cost management framework
faisal mushtaq - an enterprise cloud cost management frameworkfaisal mushtaq - an enterprise cloud cost management framework
faisal mushtaq - an enterprise cloud cost management framework
 
maksym vlasov - culture of git as roots of your ci
maksym vlasov - culture of git as roots of your cimaksym vlasov - culture of git as roots of your ci
maksym vlasov - culture of git as roots of your ci
 
vitaly davidoff - end 2 end containers secure sdlc process
vitaly davidoff - end 2 end containers secure sdlc processvitaly davidoff - end 2 end containers secure sdlc process
vitaly davidoff - end 2 end containers secure sdlc process
 
yegor maksymchuk - open shift as a cloud for data science
yegor maksymchuk - open shift as a cloud for data scienceyegor maksymchuk - open shift as a cloud for data science
yegor maksymchuk - open shift as a cloud for data science
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Jenkins on Spot: EC2 Fleet vs EC2 Plugins

  • 1. JENKINS ON SPOT Mykola Marzhan Version: 08.10.18
  • 2. Mykola Marzhan
 Release Engineer, Percona AWS Certified Solutions Architect - Professional I have been working as Release Engineer for 10 years.
  • 5. LIGHTSAIL LIMITATIONS ➤ Cannot run in VPC, Subnet ➤ Cannot assign IAM Role, Tags, Route 53 ➤ Cannot manage with CloudFormation ➤ Terraform cannot manage firewall and additional storage
  • 7.
  • 8.
  • 10. MURDERED DUE TO
 PRICE, CAPACITY, CONSTRAINTS }
  • 12.
  • 14. EFS PERFORMANCE MiB/s Operations/s AVG latency (ms) Sequential read 122,96 7869,10 0,126 Random read 21,13 1352,28 0,737 Sequential write 1,95 124,72 8,026 Sequential rewrite 1,99 127,33 7,869 Random write 1,47 94,14 10,616 Random rewrite 1,55 98,90 4,044
  • 15. ENHANCED NETWORKING FOR EC2 INSTANCES JENKINS MASTER
  • 16. EFS PERFORMANCE MiB/s Operations/s AVG latency (ms) Sequential read 122,96 +30% 7869,10 +30% 0,126 Random read 21,13 +30% 1352,28 +30% 0,737 Sequential write 1,95 +30% 124,72 +30% 8,026 Sequential rewrite 1,99 +30% 127,33 +30% 7,869 Random write 1,47 +30% 94,14 +30% 10,616 Random rewrite 1,55 +30% 98,90 +30% 4,044
  • 17. EFS LIMITATIONS ➤ EFS not suitable for many small files and one-thread applications ➤ All artifacts to S3 ➤ Tens of jobs/pipelines ➤ Few builds to keep ➤ Don’t “stash” files
 (extremely slow)
  • 18. EFS LIMITATIONS ➤ EFS not suitable for many small files and one-thread applications ➤ All artifacts to S3 ➤ Tens of jobs/pipelines ➤ Few builds to keep ➤ Don’t “stash” files
 (extremely slow)
  • 19. EFS LIMITATIONS ➤ EFS not suitable for many small files and one-thread applications ➤ All artifacts to S3 ➤ Tens of jobs/pipelines ➤ Few builds to keep ➤ Don’t “stash” files
 (extremely slow)
  • 20. EFS LIMITATIONS ➤ EFS not suitable for many small files and one-thread applications ➤ All artifacts to S3 ➤ Tens of jobs/pipelines ➤ Few builds to keep ➤ Don’t “stash” files
 (extremely slow)
  • 21. EFS LIMITATIONS ➤ EFS not suitable for many small files and one-thread applications ➤ All artifacts to S3 ➤ Tens of jobs/pipelines ➤ Few builds to keep ➤ Don’t “stash” files
 (extremely slow)
  • 24. EBS LIMITATIONS ➤ EBS limits to use one AZ
  • 27. NO EXECUTORS ON MASTER NODE JENKINS MASTER
  • 30. JENKINS WORKERS
 ON SPOT INSTANCES Artwork author: Ksenia Nenasheva
  • 31. EC2 FLEET JENKINS PLUGIN ➤ Official AWS plugin ➤ Configuration on AWS side ➤ Spot Fleet can start instances in different AZs ➤ Starts two times more instances than needed (PR#29) ➤ On scale-down AWS terminates instances under load (issues#36) ➤ New Spot Fleet on changes
  • 32. EC2 FLEET JENKINS PLUGIN ➤ Official AWS plugin ➤ Configuration on AWS side ➤ Spot Fleet can start instances in different AZs ➤ Starts two times more instances than needed (PR#29) ➤ On scale-down AWS terminates instances under load (issues#36) ➤ New Spot Fleet on changes
  • 33. EC2 FLEET JENKINS PLUGIN ➤ Official AWS plugin ➤ Configuration on AWS side ➤ Spot Fleet can start instances in different AZs ➤ Starts two times more instances than needed (PR#29) ➤ On scale-down AWS terminates instances under load (issues#36) ➤ New Spot Fleet on changes
  • 34. EC2 FLEET JENKINS PLUGIN ➤ Official AWS plugin ➤ Configuration on AWS side ➤ Spot Fleet can start instances in different AZs ➤ Starts two times more instances than needed (PR#29) ➤ On scale-down AWS terminates instances under load (issues#36) ➤ New Spot Fleet on changes
  • 35. EC2 FLEET JENKINS PLUGIN ➤ Official AWS plugin ➤ Configuration on AWS side ➤ Spot Fleet can start instances in different AZs ➤ Starts two times more instances than needed (PR#29) ➤ On scale-down AWS terminates instances under load (issues#36) ➤ New Spot Fleet on changes
  • 36. EC2 FLEET JENKINS PLUGIN ➤ Official AWS plugin ➤ Configuration on AWS side ➤ Spot Fleet can start instances in different AZs ➤ Starts two times more instances than needed (PR#29) ➤ On scale-down AWS terminates instances under load (issues#36) ➤ New Spot Fleet on changes
  • 37. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 38. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 39. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 40. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 41. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 42. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 43. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 44. AMAZON EC2 PLUGIN ➤ Most popular plugin ➤ Configuration on Jenkins side ➤ Possible to use external ssh process as transport ➤ Has init script which executed before agent start ➤ Used to starts instances one by one (fixed in 1.40) ➤ Instances cannot be started in different AZs ➤ Instance cap is tied to AMI (PR#274) ➤ Doesn’t tag instances correctly since 2013
 (JENKINS-19058, JENKINS-39702)
  • 46. EXPENSES Master
 USD/month Worker USD/month PMM 47.59 11.07 PSMDB 33.12 45.03 XtraBackup 33.60 30.21 Percona Server 65.98 399.57