Blue-green deployment
Last updated
Last updated
Mobingi ALM uses Blue-Green Deployment to achieve zero-downtime deployment of new code. When you click deploy in the code page, it will simply deploy your code.
Whenever you click this button, mobingi ALM will initiate deployment on all your servers. It will:
Renew the container image
Download the code from the repository
Create a new container
Perform code installation on the container
Test the container
If successful, direct all new incoming connections to the new container
Delete the old container after ten seconds
Firstly, all connections are being sent to the existing container, known as the Blue Container.
When code is deployed, a new Green Container containing the new code is started up and the installation process begins inside it.
Once it is ready, all traffic is then redirected to this new container. While existing connections continue to stay open against the old Blue Container.
After 10 seconds, which is enough for most HTTP requests to complete, the Blue Container is shut down, and the Green Container will be considered the Blue Container for the next deployment.