Setting up a Mesos cluster using Docker
In this recipe, we will be learning how to orchestrate our first Mesos Cluster with Marathon framework configured. We will be orchestrating this cluster in our local machine using Docker and Docker Compose.
Getting ready
Now that we know what Mesos is and why we use it to deploy our microservice, let's orchestrate our first Mesos cluster. In order to do so, we first need to understand the building blocks of Mesos. Mesos is made of the following four components:
- Zookeeper
- Mesos master
- Mesos slaves (also called as agents)
- Mesos frameworks
Zookeeper
Zookeeper is an open source tool from Apache used for centralizing cluster information or other configurations. Mesos uses Zookeeper to store its cluster information. One use of Zookeeper in Mesos is to store information about various masters in the Mesos cluster. Mesos clusters ideally have more than one master to provide fault tolerance; this way, if one master goes down, another master takes charge. Another...