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)


Marathon-LB is a tool for managing HAProxy that works by consuming Marathon's app state. HAProxy is a fast, efficient, battle-tested, highly available load balancer with many advanced features that power a number of high-profile websites. Marathon-LB provides a Python script that performs zero-downtime applications deployments. It helps you to safely deploy applications serving live traffic by creating two versions of an application: blue and green.

Let's see how it is done:

  1. To perform an application update, the green version is deployed, while all customer requests are sent to the blue version.
  2. Once the green version is deployed and healthy, the load balancer can start draining connections from the blue version and instead sends customer requests to the green version.
  3. The blue version of the application can be deleted once all customer requests are being...