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)

Adding slaves

Now, it is time to add the slaves to our configuration to complete our master-slave setup.

To do so, follow these simple steps:

  1. Start the docker service on all slaves with these commands:
sudo service docker start
sudo service docker status
  1. Start the slave services, but first, there are a few things to consider. We should have a Marathon user here:
 id marathon //include this on all 3 servers

We need to add a Marathon user; otherwise, your application will not get deployed, so the Marathon user should be there on all the three services.

  1. Change the directory to /etc/mesos-slave, and then, once in this directory, type ls -rlt. You should see the files with containerizers. Run cat containerizer, and you should see the two files for Mesos and Docker.

This information should be available on all the three servers. Now we can start the slave services as follows: