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)

Configuring Marathon

To configure Marathon, first, we need to stop the Marathon service running on marathon1. Once this is done, we can then proceed with the following steps:

  1. Go to systemd directory with the following command:
cd /etc/systemd/system/

Here, you will see the Marathon service. Type sudo vi marathon.service and you will see that we have added one server for our development environment, but here we need to add two more servers so that Marathon can connect with the mesos-master and deploy the applications. By adding a master configuration, our Marathon will get registered in the mesos-master cluster. So, let's go ahead and add two more servers in this configuration in the following steps.

  1. Make the following changes in the file that we opened in the previous step:
ExecStart=/usr/share/marathon/bin/marathon --master zk://