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 of a Cassandra cluster

Let's see how we can deploy an Apache Cassandra cluster on our Apache Mesos cluster using the Marathon framework. Before we start, let's quickly review our two JSON files, which will create one Cassandra container each on our Apache Mesos cluster. Let's check our JSON files:

You can see that we have the id as cassandra1, which is our container. We are not using cmd command hence, "cmd": null. We have defined cpus as 1, and memory is around 8 GB. We have not defined any disk, as we will be using external storage, which is AWS EBS. We wull also define instances as 1, and constraints is UNIQUE, as we will use a unique server to deploy these Cassandra images. We will use DOCKER as our container type, and the image will be cassandra. This will pull the cassandra image from Docker Hub. Then, we have defined some environments...