Book Image

Mastering Mesos

By : Dipa Dubhashi, Akhil Das
Book Image

Mastering Mesos

By: Dipa Dubhashi, Akhil Das

Overview of this book

Apache Mesos is open source cluster management software that provides efficient resource isolations and resource sharing distributed applications or frameworks. This book will take you on a journey to enhance your knowledge from amateur to master level, showing you how to improve the efficiency, management, and development of Mesos clusters. The architecture is quite complex and this book will explore the difficulties and complexities of working with Mesos. We begin by introducing Mesos, explaining its architecture and functionality. Next, we provide a comprehensive overview of Mesos features and advanced topics such as high availability, fault tolerance, scaling, and efficiency. Furthermore, you will learn to set up multi-node Mesos clusters on private and public clouds. We will also introduce several Mesos-based scheduling and management frameworks or applications to enable the easy deployment, discovery, load balancing, and failure handling of long-running services. Next, you will find out how a Mesos cluster can be easily set up and monitored using the standard deployment and configuration management tools. This advanced guide will show you how to deploy important big data processing frameworks such as Hadoop, Spark, and Storm on Mesos and big data storage frameworks such as Cassandra, Elasticsearch, and Kafka.
Table of Contents (16 chapters)
Mastering Mesos
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Deploying and configuring a Mesos cluster using Ansible


Ansible is one of the popular infrastructure automation tools commonly used by system administrators today and recently acquired by Red Hat. Nodes are managed through Secure Shell (SSH) and require only Python support. Ansible has open sourced a lot of playbooks, including an ansible-mesos one that we will discuss in this section.

The ansible-mesos playbook can be used to install and configure a Mesos cluster with customized master as well as slave setup options. Currently, it supports Ubuntu and CentOS/Red Hat operating system-powered machines. The ansible-mesos playbook also supports setting specific slave executors and hence can be run with native Docker support.

Installing Ansible

Ansible installation is only required on a single machine. It does not require a database, nor does it need to keep a daemon running all the time. It uses SSH to manage the cluster and requires Python (versions 2.6 or 2.7) to be installed on the machine...