Safe deployments with
Blue-Green and Spinnaker
Platform Bucharest
23.02.2017
Hi
Mihnea Dobrescu-Balaur
@mihneadb
https://www.mihneadb.net
Deployment
• getting product out to clients
• agility matters - first to market
• speed vs risk
Rolling deployment
• classic/easiest way of doing things
• on every server: git pull; restart
• you are probably doing some variation of this
http://searchitoperations.techtarget.com/definition/rolling-deployment
Rolling deployment (cont.)
• Advantages:
• simple
• no extra hardware
• can do partial deploys
Rolling deployment (cont.)
• Disadvantages:
• might drop requests
• slow rollback
• finding the "last good state"
• testing in staging only
Blue-Green deployment
• two identical production environments
• only one serves requests
• deploy to the new one; test; route traffic
http://fbrnc.net/blog/2016/05/green-blue-deployments-with-aws-lambda-and-cloudformation
Blue-Green deployment
(cont.)
• Advantages:
• testing in production
• no downtime
• quick rollback
• predictable release time
Blue-Green deployment
(cont.)
• Disadvantages
• cost - 2x servers
• databases require extra work
• development time to implement
Fixing the database problem
Optimizations
• connection draining
• canary
• sticky sessions
• automated tests on green
• reproducible deploys using AMIs/Docker images
Real world
• using it at Hootsuite since summer 2015
• 1K deploys in prod with no issues*
• has not affected our velocity
• deploy to prod is a mundane task
* trivial rollback in case we had any
Real world (cont.)
• Tech stack:
• Docker
• Asgard
• Jenkins
• ELB
• Hubot
Our deployment pipeline
http://code.hootsuite.com/blue-green-deployments/
Our deployment pipeline
(cont.)
• cluster check
• conflict check
• merge tests
• live tests
• git merge
• manual canary release
• manual blue-green switch
Spinnaker
• successor of Asgard (thanks, Netflix)
• custom build and deploy pipelines
• multiple cloud providers supported
Why Spinnaker?
• easy trigger integration with Jenkins
• handles all the "cloud" stuff
• server groups
• load balancers
• security groups
• useful templates built-in
https://cloud.google.com/solutions/spinnaker-on-compute-engine
Spinnaker stack
• Jenkins
• Packer
• .deb repo
• Spinnaker core
Deploying .debs
• not everybody used to this
• lifesaver: fpm
• running your stuff - upstart
Demo!
http://www.spinnaker.io/docs/from-source-to-prod

More Related Content

ODP
Continuous Delivery with Spinnaker.io
PPTX
Saltconf16 william-cannon b
PDF
Manage thousands of k8s applications with minimal efforts using kube carrier
PDF
Running tests for every commit: Gerrit, Jenkins, Docker, AWS
PPTX
Spinnaker for Azure
PDF
Network Infrastructure as Code with Chef and Cisco
PPTX
Reliable, Scalable Kubernetes on AWS
PPTX
Continuous Delivery with Spinnaker and Kubernetes
Continuous Delivery with Spinnaker.io
Saltconf16 william-cannon b
Manage thousands of k8s applications with minimal efforts using kube carrier
Running tests for every commit: Gerrit, Jenkins, Docker, AWS
Spinnaker for Azure
Network Infrastructure as Code with Chef and Cisco
Reliable, Scalable Kubernetes on AWS
Continuous Delivery with Spinnaker and Kubernetes

What's hot (20)

PDF
Green / Blue Deployment with Immutable Servers
PDF
Deploying Anything as a Service (XaaS) Using Operators on Kubernetes
PPTX
DevOps: Infrastructure as Code
PDF
Bringing DevOps to Routing with evolved XR: an overview
PDF
Web Application Firewall - Friend of your DevOps Chain?
PDF
Infrastructure as Code
PPTX
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
PDF
Migrating a build farm from on-prem to AWS
PPTX
Building Cloud Native Applications Using Spring Boot and Spring Cloud
PDF
Operator development made easy with helm
PDF
Setup Hybrid Clusters Using Kubernetes Federation
PDF
GitOps is the best modern practice for CD with Kubernetes
PDF
Immutable Infrastructure: Rise of the Machine Images
PDF
Serverless Functions: Accelerating DevOps Adoption
PDF
Crafting Kubernetes Operators
PDF
[Lakmal] Automate Microservice to API
PPTX
Deploying NGINX Plus & Kubernetes on Google Cloud Platform
PDF
Advanced dev ops governance with terraform
PDF
基於 K8S 開發的 FaaS 專案 - riff
PPTX
Docker Serverless
Green / Blue Deployment with Immutable Servers
Deploying Anything as a Service (XaaS) Using Operators on Kubernetes
DevOps: Infrastructure as Code
Bringing DevOps to Routing with evolved XR: an overview
Web Application Firewall - Friend of your DevOps Chain?
Infrastructure as Code
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
Migrating a build farm from on-prem to AWS
Building Cloud Native Applications Using Spring Boot and Spring Cloud
Operator development made easy with helm
Setup Hybrid Clusters Using Kubernetes Federation
GitOps is the best modern practice for CD with Kubernetes
Immutable Infrastructure: Rise of the Machine Images
Serverless Functions: Accelerating DevOps Adoption
Crafting Kubernetes Operators
[Lakmal] Automate Microservice to API
Deploying NGINX Plus & Kubernetes on Google Cloud Platform
Advanced dev ops governance with terraform
基於 K8S 開發的 FaaS 專案 - riff
Docker Serverless
Ad

Similar to Safe deployments with Blue-Green and Spinnaker (20)

PDF
Safe deployments with Blue-Green and Spinnaker
PDF
2016 09-dev opsjourney-devopsdaysoslo
PDF
GOTOpia 2/2021 "Cloud Native Development Without the Toil: An Overview of Pra...
PDF
Cloud native development without the toil
PPTX
Self Healing blue/green Deployments with Dynatrace and Keptn
PDF
JAX London 2021: Jumpstart Your Cloud Native Development: An Overview of Prac...
PDF
Application Deployement Strategies
PPT
DevOps / Agile Tools Seminar 2013
PPTX
The Rocky Cloud Road
PPTX
Infrastructure as Code for Network
PPTX
Debugging,Troubleshooting & Monitoring Distributed Web & Cloud Applications a...
PDF
Distributed Development, Centralised Delivery - SAGrid Jenkins + CVMFS
PPTX
Trunk based development and Canary deployment
PDF
Linux Collaboration Summit Keynote: Transformation: It Takes a Platform
PDF
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
PDF
Continuous Deployment of your Application @jSession#5
PPTX
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
PDF
Testing Applications—For the Cloud and in the Cloud
PPTX
Supercharging Optimizely Performance by Moving Decisions to the Edge
PPTX
Building block development in managed hosting - Angelo Rossi, Manager, Comple...
Safe deployments with Blue-Green and Spinnaker
2016 09-dev opsjourney-devopsdaysoslo
GOTOpia 2/2021 "Cloud Native Development Without the Toil: An Overview of Pra...
Cloud native development without the toil
Self Healing blue/green Deployments with Dynatrace and Keptn
JAX London 2021: Jumpstart Your Cloud Native Development: An Overview of Prac...
Application Deployement Strategies
DevOps / Agile Tools Seminar 2013
The Rocky Cloud Road
Infrastructure as Code for Network
Debugging,Troubleshooting & Monitoring Distributed Web & Cloud Applications a...
Distributed Development, Centralised Delivery - SAGrid Jenkins + CVMFS
Trunk based development and Canary deployment
Linux Collaboration Summit Keynote: Transformation: It Takes a Platform
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
Continuous Deployment of your Application @jSession#5
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
Testing Applications—For the Cloud and in the Cloud
Supercharging Optimizely Performance by Moving Decisions to the Edge
Building block development in managed hosting - Angelo Rossi, Manager, Comple...
Ad

Recently uploaded (20)

PDF
Sun and Bloombase Spitfire StoreSafe End-to-end Storage Security Solution
PDF
Cloud Native Aachen Meetup - Aug 21, 2025
PPTX
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PDF
AI-Powered Fuzz Testing: The Future of QA
PPTX
Airline CRS | Airline CRS Systems | CRS System
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
PPTX
hospital managemt ,san.dckldnklcdnkdnkdnjadnjdjn
PDF
BoxLang Dynamic AWS Lambda - Japan Edition
PDF
PDF-XChange Editor Plus 10.7.0.398.0 Crack Free Download Latest 2025
PDF
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
PPTX
Matchmaking for JVMs: How to Pick the Perfect GC Partner
PDF
Internet Download Manager IDM Crack powerful download accelerator New Version...
PDF
Microsoft Office 365 Crack Download Free
PPTX
Chapter 1 - Transaction Processing and Mgt.pptx
PPTX
Full-Stack Developer Courses That Actually Land You Jobs
PDF
Workplace Software and Skills - OpenStax
DOC
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
PPTX
string python Python Strings: Literals, Slicing, Methods, Formatting, and Pra...
Sun and Bloombase Spitfire StoreSafe End-to-end Storage Security Solution
Cloud Native Aachen Meetup - Aug 21, 2025
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
Understanding the Need for Systemic Change in Open Source Through Intersectio...
CCleaner 6.39.11548 Crack 2025 License Key
AI-Powered Fuzz Testing: The Future of QA
Airline CRS | Airline CRS Systems | CRS System
Practical Indispensable Project Management Tips for Delivering Successful Exp...
hospital managemt ,san.dckldnklcdnkdnkdnjadnjdjn
BoxLang Dynamic AWS Lambda - Japan Edition
PDF-XChange Editor Plus 10.7.0.398.0 Crack Free Download Latest 2025
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
Matchmaking for JVMs: How to Pick the Perfect GC Partner
Internet Download Manager IDM Crack powerful download accelerator New Version...
Microsoft Office 365 Crack Download Free
Chapter 1 - Transaction Processing and Mgt.pptx
Full-Stack Developer Courses That Actually Land You Jobs
Workplace Software and Skills - OpenStax
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
string python Python Strings: Literals, Slicing, Methods, Formatting, and Pra...

Safe deployments with Blue-Green and Spinnaker