Implementing the blue/green deployment with Marathon-LB

Let's go ahead and start deploying the application to understand how blue/green deployment works, by performing the following steps:

  1. We will create a new version of the web application that uses the nginx web server, as well as creating a definition file to deploy the nginx web server on our Mesos cluster using Marathon.
  1. We should focus on the following two new labels used for managing the blue/green deployment technique:
    • HAPROXY_DEPLOYMENT_GROUP: This label uniquely identifies a pair of apps belonging to a blue/green deployment, and will be used as the app name in the HAProxy configuration.
    • HAPROXY_DEPLOYMENT_ALT_PORT: An alternate service port is required because Marathon requires ...

Get Learn Apache Mesos now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.