SlideShare a Scribd company logo
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
Time Tracking Features That Teams and Organizations Actually Need
PDF
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PPTX
Custom Software Development Services.pptx.pptx
DOCX
How to Use SharePoint as an ISO-Compliant Document Management System
PPTX
assetexplorer- product-overview - presentation
PDF
Types of Token_ From Utility to Security.pdf
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
Salesforce Agentforce AI Implementation.pdf
PPTX
Cybersecurity: Protecting the Digital World
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PPTX
chapter 5 systemdesign2008.pptx for cimputer science students
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
Complete Guide to Website Development in Malaysia for SMEs
PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
Time Tracking Features That Teams and Organizations Actually Need
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
Oracle Fusion HCM Cloud Demo for Beginners
Monitoring Stack: Grafana, Loki & Promtail
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Custom Software Development Services.pptx.pptx
How to Use SharePoint as an ISO-Compliant Document Management System
assetexplorer- product-overview - presentation
Types of Token_ From Utility to Security.pdf
Patient Appointment Booking in Odoo with online payment
Salesforce Agentforce AI Implementation.pdf
Cybersecurity: Protecting the Digital World
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Wondershare Recoverit Full Crack New Version (Latest 2025)
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
chapter 5 systemdesign2008.pptx for cimputer science students
Autodesk AutoCAD Crack Free Download 2025
Complete Guide to Website Development in Malaysia for SMEs
AI/ML Infra Meetup | LLM Agents and Implementation Challenges

Safe deployments with Blue-Green and Spinnaker