Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Apache Mesos

You're reading from   Learn Apache Mesos A beginner's guide to scalable cluster management and deployment

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789137385
Length 248 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Manuj Aggarwal Manuj Aggarwal
Author Profile Icon Manuj Aggarwal
Manuj Aggarwal
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Deploying Apache Mesos on AWS FREE CHAPTER 2. Setting up Mesos Single-Cluster Nodes 3. Installation of Mesosphere 4. Apache Mesos Administration 5. Deploying Services on Mesos Cluster 6. Persistent Volumes 7. Securing Mesos 8. Managing Resources in Mesos 9. Another Book You May Enjoy

Introduction to Apache Mesos

Imagine an e-commerce application server where, if you are selling a product, lots of users access your website. This creates a huge amount of data and requires more CPU memory and disk space. Day-by-day users increase, so the demand for resources increases. To cater to these needs, you use data centers and the cloud to provide these additional resources. Apache Mesos helps to manage and share these resources in an efficient manner, and also helps us with scalable deployments by forming a cluster.

A Mesos cluster is made up of four major components:

  • ZooKeeper
  • Mesos masters
  • Mesos slaves
  • Frameworks

Architecture of Mesos

Mesos has an architecture with the combination of master and slave daemons and frameworks. Here are a few definitions of components used in our architecture:

  • Master daemon: Mesos master runs on a master node and organizes the slave daemons, so we will have three master nodes where we will install Mesos master, and it will manage the Mesos slave server, which runs on the other three servers.
  • Slave daemon: Mesos slave runs on slave nodes and runs tasks that belong to the framework, so we will be having a Marathon framework, which will register with the Mesos master and will schedule the Docker containers, and those Docker containers will run on Mesos slave servers.
  • Framework: The framework, which can also be called the Mesos application, consists of a scheduler, which registers with the master to achieve resource offers, and one or more executors, which pushes the tasks on slaves. An example of a Mesos framework is Marathon. The Marathon framework can be used in the scheduling of tasks. So, the Marathon framework gets registered with the Mesos master and it receives the resource offers. This framework also deploys the application on the Mesos cluster, which gets launched on slaves.

Following are other important components of the Mesos architecture:

  • Offer: The master gets offers from the slave nodes and the master provides offers to the registered frameworks. So, all the resources are on slave node, such as CPU memory and disk, and then the Mesos master provides offers to the registered framework, which is Marathon.
  • Task: A unit of work that is scheduled by a framework, Marathon, and tasks are like Docker. If we run any image of Docker, those Docker images will run on a slave node. Tasks can be anything, from a bash command, or script, or running a Docker container.
  • Apache ZooKeeper: It's a software that is used to coordinate the master nodes. It elects the master leader, and if out of three nodes any node is down, it again elects the leader from the remaining two nodes. A minimum of three nodes is required to form a cluster.
You have been reading a chapter from
Learn Apache Mesos
Published in: Oct 2018
Publisher: Packt
ISBN-13: 9781789137385
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image