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)

Securing Mesos

Let's secure Mesos by using authentication. In this chapter, we will learn how to authenticate agents to prevent unknown agents and frameworks from joining the cluster. To prevent the launch of unauthorized frameworks, we can specify a secret that needs to be passed by the framework to be accepted by Mesos. The Scheduler API accepts the principal and the secret as a way of authenticating frameworks. The same approach applies to agents as well. Only those knowing the secret can join the cluster. So before we work on configuring authentication, we have to identify the principals of our cluster and generate secrets for them. In the example presented in this chapter, we will assume we have two principals: marathon1 (framework), and agent (all agents).

The following topics will be covered in this chapter:

  • Enabling and configuring authentication
  • Configuring agents...