Questions tagged [blue-green-deployment]
Blue-green deployment minimizes downtime by switching from one identical environment to another. The environments can reside on the same or different hardware.
blue-green-deployment
172
questions
159
votes
6
answers
73k
views
Canary release strategy vs. Blue/Green
My understanding of a canary release is that it's a partial release to a subset of production nodes with sticky sessions turned on. That way you can control and minimize the number of users/customers ...
53
votes
4
answers
34k
views
Blue Green Deployments vs Rolling Deployments?
What's the difference between a blue/green deployment and a rolling deployment? I always thought that a blue/green deployment was a sudden switch of traffic from the old version to the new version ...
20
votes
1
answer
4k
views
How to route in between microservices using Spring Cloud & Netflix OSS
During our development of microservices using Spring Cloud, we started out using Zuul as a proxy for any connection from the outside to microservices, and for any microservice needing to contact ...
14
votes
1
answer
6k
views
Blue/Green Deployments with Azure ServiceFabric
I'm currently building an application using the ReliableActors framework on Azure ServiceFabric. As we scale up, I'm looking at doing blue/green deployments. I can see how to do this using a stateless ...
13
votes
1
answer
4k
views
What is the canonical way to do blue/green deployment with the Spring Cloud/Netflix stack on PWS?
I'm experimenting with a setup that is very much like the one detailed in the image here: https://raw.githubusercontent.com/Oreste-Luci/netflix-oss-example/master/netflix-oss-example.png
In my setup, ...
12
votes
2
answers
1k
views
How can we maintain state of autoscaling group while using Blue/Green Deployment in AWS CodeDeploy?
We have setup our infrastructure for a project using Terraform, including the code-deploy, ALB and auto-scaling groups. So far, we were doing in-place deployments. But now we're trying to switch to ...
11
votes
1
answer
14k
views
Blue Green Deployment with Helm Charts
We Could deploy applications using 'Helm Charts' with
helm install --name the-release helm/the-service-helm --namespace myns
And we cold 'Rolling Upgrade' the deployment using,
helm upgrade --...
10
votes
4
answers
4k
views
Zero downtime/blue-green deployment of Single Page Application (SPA)
Yesterday together with the team we were discussing the possibility of using zero downtime deployments to support our single page application.
While discussing it we identified one edge case for it.
...
9
votes
1
answer
11k
views
RDS snapshot restore taking too long
As part of our blue-green deployment strategy we are snapshoting the prod RDS instance and then restoring this snapshot into a new instance applying db migrations after it and linking the newly Green ...
9
votes
2
answers
4k
views
How to handle data changes in Blue/Green deployment technique? [closed]
I have studied this article about Blue/Green deployment, then some more googling introduced me to this article about Canary Release.
I have this ambiguity : what will happen to databases? how we ...
7
votes
2
answers
5k
views
blue green deployment on heroku or another cloud platform as a service
We're currently running a Ruby on Rails project (RefineryCMS) on Heroku with two dynos.
Every time we update the site we experience downtime for about 1 to 2 minutes. Management are not happy about ...
7
votes
3
answers
6k
views
S3 static website /w bluegreen deployment
I'm having difficulty providing a bluegreen for my s3 static website. I publish a version of the website in a given bucket and it is exposed at:
a Cloudfront distribution
then on a Route 53
and yet ...
6
votes
1
answer
792
views
How do I run a blue green deployment in Azure with EF Core Migrations enabled
I would like to run blue green deployments; however, EF Migrations seem to block that. If I deploy version 1 to the Blue slot, create an EF Migrations and deploy version 2 to the Green slot, then one ...
5
votes
2
answers
3k
views
Required Cloudformation Script for Blue/Green deployment on ECS
I am trying to write a cloud-formation template for AWS ECS with blue green deployment support. This blue-green feature was added recently by AWS in ECS and couldn't find any reference for updating it ...
5
votes
1
answer
1k
views
Spark Structured Streaming Blue/Green Deployments
We'd like to be able to deploy our Spark jobs such that there isn't any downtime in processing data during deployments (currently there's about a 2-3 minute window). In my mind, the easiest way to do ...
5
votes
3
answers
4k
views
Blue/Green "deployment" of elasticsearch data?
I am planning on extracting (essentially scraping, with permission) some data from a web-page and store that in elasticsearch (you know, for search).
While I have permission to scrape the data from ...
4
votes
5
answers
7k
views
How can I update and ECS service adding an addition load balance to which a service talks to without downtime?
We use terraform to manage our AWS resources and have the code to change the service from one to two load balancers.
However,
terraform wants to destroy the service prior to recreating it. AWS cli ...
4
votes
4
answers
7k
views
AWS ECS Blue/Green CodePipeline: Exception while trying to read the image artifact
I wanted to create a CodePipeline which builds a container image from CodeCommit source and afterwards deploys the new image in Blue/Green fashion to my ECS service (EC2 launchtype).
The source stage ...
4
votes
3
answers
3k
views
AWS Lambda and Gateway API - blue/green deployment with cloudformation
When deploying the lambda function with Gateway API using cloudformation template, I want to put Gateway APIs created with different stages behind route53, so can use the weighted trafficking for blue/...
4
votes
1
answer
2k
views
CloudFront Function for routing request to origin based on HTTP Header
I am trying to implement a solution based on routing the request to a specific origin based on HTTP header on the request.
We are using CloudFront for caching, and we have attached 2 ALBs as origin. ...
4
votes
1
answer
4k
views
How to provide AppSpec and Task Definition to CodeDeploy in ECR sourced pipeline
I want to trigger a blue/green ECS deploy on ECR image update. The deployment stage requires three input artifacts: imageDetail.json, appspec.json and taskdef.json.
While creating a pipeline I pick ...
4
votes
1
answer
4k
views
Avoid Update of resources in Terraform
Currently we are using the Blue/Green Deployment Model for our Application using Terraform.
And our TF Files have resources for both Blue & Green as seen below -
resource "aws_instance" "...
4
votes
3
answers
2k
views
Elastic Beanstalk + Route53 Alias = instant blue-green swaps?
When using Elastic Beanstalk with CNAME swapping for zero downtime deployments, DNS caching (clients not respecting TTL) causes some clients to continue sending traffic to the old environment (for up ...
4
votes
1
answer
492
views
Best practice to implement the actual blue/green deployment for serverless application created by cloudformation
[background]
Hi, I'm preparing to implement serverless application using cloudformation(aws-sam) and would like to apply blue/green deployment for production environment.
This application is actually ...
4
votes
0
answers
614
views
How to deploy multiple git repositories all at once using AWS Code Deploy and AWS Code Pipeline?
I have 3 different repositories which has to be deployed(deploymentType is Blue/Green) to same autoscaling group. I've created 3 different code pipeline and one deployment group.
Problem here is ...
3
votes
2
answers
2k
views
Canary Release and Blue Green Deployment on AWS
I am currently implementing Canary Release and Blue Green Deployment on my Static Website on AWS S3. Basically, I created two S3 bucket (v1 and v2) and 2 cloud front (I didn't append the CNAME). Then, ...
3
votes
2
answers
169
views
Removing a non-nullable Django field with SeparateDatabaseAndState
Let's say I have the following model:
class Product(models.Model):
name = models.CharField(max_length=128)
is_retired = models.BooleanField(default=False)
I want to remove the is_retired ...
3
votes
2
answers
624
views
How to implement blue/green deployments in AWS with Terraform without losing capacity
I have seen multiple articles discussing blue/green deployments and they consistently involve forcing recreation of the Launch Configuration and the Autoscaling Group. For example:
https://groups....
3
votes
1
answer
3k
views
Blue/Green deployment for service that using Kafka in docker swarm
Goal: is to organize blue/green deployment for the particular spring-boot service which is using Kafka.(I'm not interested how to solve B/G on REST or DB layer so lets assume that this part of B/G is ...
3
votes
1
answer
1k
views
Blue Green Deployment for particular MicroService
I am using Kubernetes cluster for deploying our bunch of Microservices.I am able to manage Blue Green depoyment for all microservices at the same time like below
My problem is that some times i want ...
3
votes
1
answer
1k
views
Connections lost on slot swap
I want to use deployment slots for my Blazor server side application, but it stops working for the current users during the swap and they have to refresh the page.
I'm using an Azure SignalR Service ...
3
votes
1
answer
322
views
Can GWT apps be deployed with blue/green deployment?
I read Martin Fowler's Blue/Green Deployment article and really like it. Basically, it's the concept that you have 2 production-class environments: a "blue" LIVE environment and a "green" LIVE ...
3
votes
1
answer
129
views
How to use a blue/green deployment style with CodeDeploy and Auto Scaling Groups that allows for repetitive deployments in Terraform?
I have a load-balanced EC2 instance that hosts a web API that I am trying to use AWS CodeDeploy to deploy new versions of the API with. I am trying to make use of a blue/green deployment style, where ...
3
votes
4
answers
2k
views
Blue Green deployment with multiple Micro Services with internal calls
I have a 8 spring boot micro services which internally call each other. The calling dns's of other micro services, define in the application.properties file of each service.
Suppose, micro service A ...
3
votes
0
answers
669
views
Blue-green deployment for Jenkins itself
When I tinker with my live Jenkins instance, I risk down time. Thus I want to run blue and green Jenkins master instances. This way, I can work on one while the other is live and stable.
As ...
2
votes
2
answers
1k
views
Blue/green deployment for node.js application on cloudfoundry
Is there any tool to automate blue/green deployment on cloudfoundry for node.js applications. I've tried cloudfoundry gradle plugin (https://github.com/cloudfoundry/cf-java-client/tree/master/...
2
votes
2
answers
86
views
How to handle db data stored according to previous application version during rolling update
Let's say I have an system running on Kubernetes using rolling updates or AWS ECS using blue/green deployments or any other solution which offers zero-downtime deployments. The key point here is that ...
2
votes
1
answer
559
views
Angular ui blue green deployment
I am trying to implement blue/green deployment for my application. I am using istio VirtuaService for navigating to blue environment or green environment based on clientId in request header. Backends ...
2
votes
1
answer
1k
views
AWS WebApp Blue / Green Deployment Without Breaking Sessions
My use case:
I have a web application served by an Elastic Load Balancer which is in front of 1 EC2 instance.
The architecture aims to simulate a Blue/Green deployment flow, meaning that I will turn ...
2
votes
1
answer
223
views
How to control Jelastic Traffic Distributor via API
Traffic Distributor (https://docs.jelastic.com/traffic-distributor) is a cool feature which add's load balancing to your app and enables Blue/Green deploy.
However, seems that there's no API to ...
2
votes
0
answers
672
views
Creating Blue/Green RDS Error: DB instance put into incompatible-restore state. RDS recommends that you initiate a point-in-time-restore
I have PostgreSQL 11.22 running on RDS.
It is a version which will not be supported soon, so I want to update to v16 but with minimum downtime.
As AWS suggests I tried Blue/Green RDS. I followed these ...
2
votes
1
answer
303
views
Cannot delete column with only null values when BlockOnPossibleDataLoss=true
I'm using a blue-green deployment strategy with expand contract database pattern. To achieve that on my database deploy schema I've setted the property BlockOnPossibleDataLoss=true because on Expand ...
2
votes
0
answers
176
views
Deployment handling with Rabbit
My application has rabbitMq which has multiple consumers[3] and i do round robing for consuming the messages .
At the moment i do canary deployment while deploying new version but this lands me in ...
2
votes
0
answers
2k
views
CodeDeploy is not replacing my active tasks although my replacement tasks are healthy
I am trying to do blue-green deployment on ECS. I am not sure why my tasks are not being replaced by Code deploy and why it is showing this error "The deployment timed out while waiting for the ...
2
votes
1
answer
665
views
How to do blue-green deployment for AWS Step Functions
I am using AWS step function and I made some changes in state machine and activity worker. Activity code changes are not backward compatible. Also, activity code is deployed in my hosts (not hosted in ...
2
votes
0
answers
218
views
IIS Blue / Green deployment wrong sites started after reboot
We setup our IIS sites to accommodate blue / green deployments. We noticed that after reboot the wrong sites get started.
The setup:
app.blue
app.green
app.entry
On the app.entry site we have a ...
2
votes
1
answer
2k
views
Blue-green deployment with single sqs queue
Currently we have a system that processes messages from an external JMS message queue. With our blue-green deployments, part of the activation of a stack is modifying security groups to enable/disable ...
1
vote
3
answers
261
views
Does Kubernetes natively support "blue-green"-like deployments?
I have a single page app. It is served by (and talks to) an API server running on a Kubernetes deployment with 2 replicas. I have added a X-API-Version header that my API sends on every request, and ...
1
vote
1
answer
2k
views
AWS Immutable Updates for New Application Version
Trying to use immutable deployment strategy for deploying new application version on AWS Elastic Beanstalk. Is there anyway to determine how AWS handles traffic from the old to new instances? Since it ...
1
vote
1
answer
1k
views
EKS Blue Green Deployments
Currently we’re running the loads on ECS where AWS provides OOB solution for Blue Green and canary deployments using code deploy, Right we’re in a process of migrating the applications EKS, Is there ...