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)

High availability

High availability, in simple terms, means achieving very close to 100 percent system uptime by ensuring that there is no single point of failure. This is typically done by incorporating redundancy mechanisms, such as backup processes; taking our instances from the failed ones; and so on. So, by design, Mesos provides a fault-tolerant environment for running applications. The master daemon and the slave daemon operate in a distributed and highly available manner, ensuring that no one component can cause an outage of the entire cluster.

Let's learn about high availability. To ensure that Mesos is highly available to the application that uses its cluster manager, the Mesos master uses a single leader and multiple standby masters, which are ready to take over in the event that the leader's master fails. The master uses a ZooKeeper to coordinate leadership...