Book Image

Apache Mesos Essentials

By : Dharmesh Kakadia
Book Image

Apache Mesos Essentials

By: Dharmesh Kakadia

Overview of this book

<p>Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks. It allows developers to concurrently run the likes of Hadoop, Spark, Storm, and other applications on a dynamically shared pool of nodes. With Mesos, you have the power to manage a wide range of resources in a multi-tenant environment.</p> <p>Starting with the basics, this book will give you an insight into all the features that Mesos has to offer. You will first learn how to set up Mesos in various environments from data centers to the cloud. You will then learn how to implement self-managed Platform as a Service environment with Mesos using various service schedulers, such as Chronos, Aurora, and Marathon. You will then delve into the depths of Mesos fundamentals and learn how to build distributed applications using Mesos primitives.</p> <p>Finally, you will round things off by covering the operational aspects of Mesos including logging, monitoring, high availability, and recovery.</p>
Table of Contents (15 chapters)
Apache Mesos Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Maintenance


Maintenance allows the slaves to be removed from the cluster for performing hardware upgrades or maintenance tasks, such as upgrading the operating system on the slave. Maintenance features in Mesos provide you with the ability to inform frameworks about the slave that wants to go through maintenance so that frameworks do not launch new tasks on the slave. Mesos can drain the tasks from a set of slaves and provides you with a way to notify the frameworks about future draining. This allows frameworks to take a preemptive action and smoother operation while draining.

Tip

Note that at the time of writing, the maintenance feature is still under heavy development.

The following are the steps to be performed by a slave for maintenance.

  1. A slave who wants to be drained starts mentioning his intentions in the resource offers.

  2. The Mesos master stops offering these resources to frameworks.

  3. Mesos sends inverse offers to frameworks that are running tasks on the slave.

  4. The framework on receiving...