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

Monitoring


Monitoring is a vital part of keeping any infrastructure running. Mesos integrates well with existing monitoring solutions and has plugins for most of the monitoring solutions, including Nagios, collectd (https://github.com/rayrod2030/collectd-mesos), and so on. This allows Mesos to leverage all the years of experience that operators have with these tools. The installation procedure of these plugins is completely dependent on the tool and is similar to any other plugin installation that does not require any knowledge of Mesos. The HTTP endpoint also gives the monitoring information. http://<master>/metrics/snapshot spits out a detailed resource report similar to the following code snippet:

{  
   "master/cpus_percent":0,
   "master/cpus_total":2,
   "master/cpus_used":0,
   "master/disk_percent":0,
   "master/disk_total":32808,
   ...
   "registrar/queued_operations":0,
   "registrar/registry_size_bytes":405,
   "registrar/state_fetch_ms":8.523776,
   "registrar/state_store_ms...