Book Image

Learn Apache Mesos

By : Manuj Aggarwal
Book Image

Learn Apache Mesos

By: Manuj Aggarwal

Overview of this book

Apache Mesos is an open source cluster manager that provides efficient resource isolation and sharing across distributed applications or frameworks. This book will help you build a strong foundation of Mesos' capabilities along with practical examples to support the concepts explained throughout the book. Learn Apache Mesos dives straight into how Mesos works. You will be introduced to the distributed system and its challenges and then learn how you can use Mesos and its framework to solve data problems. You will also gain a full understanding of Mesos' internal mechanisms and get equipped to use Mesos and develop applications. Furthermore, this book lets you explore all the steps required to create highly available clusters and build your own Mesos frameworks. You will also cover application deployment and monitoring. By the end of this book, you will have learned how to use Mesos to make full use of machines and how to simplify data center maintenance.
Table of Contents (10 chapters)

Deploying Services on Mesos Cluster

A service deployment is a process where we configure a collection of services in the host application that are required to instantiate the program. In this chapter, we will deploy WordPress and the nginx application via the Marathon framework. We will see how we can scale the application very quickly and easily. We will load balance our Marathon console using Elastic Load Balancer. We will also do the same process for our Mesos console. This will help us to save time as we don't have to log in each console every time. If your load balancer is forwarding a request to a standby server, then the standby will forward that request to our elected leader of Mesos. In this way, you will achieve the high availability and the resilience of Marathon and your Mesos master servers.

We will also see how to set a Marathon-lb HAProxy to load balance your...