Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Mesos

You're reading from  Mastering Mesos

Product type Book
Published in May 2016
Publisher Packt
ISBN-13 9781785886249
Pages 352 pages
Edition 1st Edition
Languages
Authors (2):
Dipa Dubhashi Dipa Dubhashi
Profile icon Dipa Dubhashi
Akhil Das Akhil Das
Profile icon Akhil Das
View More author details

Table of Contents (16) Chapters

Mastering Mesos
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. Introducing Mesos 2. Mesos Internals 3. Getting Started with Mesos 4. Service Scheduling and Management Frameworks 5. Mesos Cluster Deployment 6. Mesos Frameworks 7. Mesos Containerizers 8. Mesos Big Data Frameworks 9. Mesos Big Data Frameworks 2 Index

Service discovery using Marathoner


Modern distributed applications require a way to communicate with each other, which means that one application should know the presence of the other application when they are on the same network. This is called service discovery. In this section, we will take a look at the service discovery of web services that run on Marathon. One can adopt this approach for most of the stateless applications running on top of Marathon.

We will use the combination of the popular HAProxy TCP/HTTP load balancer along with Marathon's REST API script, which was covered in the previous topics, to regenerate the configuration file of HAProxy for the service discovery of Marathon applications. When a task is spawned on one of the Mesos slaves, they are configured to bind the port to an arbitrary one within the default range of 31,000-32,000.

Service discovery lets the applications running on Marathon communicate with others running alongside Marathon through their configured Marathon...

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 $15.99/month. Cancel anytime}