Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Apache Mesos

You're reading from   Learn Apache Mesos A beginner's guide to scalable cluster management and deployment

Arrow left icon
Product type Book
Published in Oct 2018
Publisher Packt
ISBN-13 9781789137385
Pages 248 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Manuj Aggarwal Manuj Aggarwal
Author Profile Icon Manuj Aggarwal
Manuj Aggarwal
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Deploying Apache Mesos on AWS FREE CHAPTER 2. Setting up Mesos Single-Cluster Nodes 3. Installation of Mesosphere 4. Apache Mesos Administration 5. Deploying Services on Mesos Cluster 6. Persistent Volumes 7. Securing Mesos 8. Managing Resources in Mesos 9. Another Book You May Enjoy

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 service ports to be unique across all apps.
  2. Then, we will install Python version 3, as required by zdd.py, Git, and our other dependencies...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime