Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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 Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789137385
Length 248 pages
Edition 1st Edition
Languages
Tools
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

Installing Marathon-LB

In this example, we will perform a blue/green deployment technique using the zdd.py Python script and special Marathon-LB labels in your application definitions.

You need to first install Marathon-LB, using a Docker image, by executing the following command:

docker run -d -p 9090:9090

As you can see in the preceding command, 9090 is the port to which your HAProxy will bind–you access the HAProxy web page to find out the status of your load balancer. Then, next is -p 8081:10001. This is where your services will run. Here, we set it to 10000 and 8081. So, we have exposed the 8081 port where your application will get accessed; and inside Docker, 10000 will be used. So, this is how your port mapping will happen. After that, we defined --add-host.

This variable needs to be defined if you don't have any DNS. If you have DNS in your environment, you...

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
Banner background image