Alphaus | Documentation
WebsiteRepoTech blog (JP)Tech blog (EN)
ALM v2.0
ALM v2.0
  • Mobingi Documentation (v2.0)
  • Getting started
  • Guides and tutorials
    • Stack lifecycle
      • Deploy stack
      • Manage stack
    • Docker
      • Custom Docker containers
    • Others
      • Blue-green deployment
      • How to use RDS
      • Environment variables
      • Custom installation script
      • SSH into your container
    • FAQ
  • API Reference
    • Overview
    • Stacks
      • List stacks
      • Create stack
      • Describe stack
      • Update stack
      • Delete stack
      • Deploy code
      • Put lifecycle hook
      • Get lifecycle hook
      • Restart instance
      • Describe ServiceConfig
      • Update ServerConfig
    • Vendor credentials
      • List credentials
      • Save credentials
      • Delete credentials
Powered by GitBook
On this page

Was this helpful?

  1. Guides and tutorials
  2. Others

Blue-green deployment

PreviousOthersNextHow to use RDS

Last updated 6 years ago

Was this helpful?

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:

  1. Renew the container image

  2. Download the code from the repository

  3. Create a new container

  4. Perform code installation on the container

  5. Test the container

  6. If successful, direct all new incoming connections to the new container

  7. 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.