Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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 Amazon Web Service (AWS)

AWS is a secured cloud service platform that offers computing power. This is where we can run an EC2 instance for our master and slave, and then for the Marathon framework. It offers database storage as well.

We will use a MySQL database that offers more functionality to help the environment scale and grow.

AWS environment

For creating a VPC, EC2 instance, security groups, and load-balancers, perform the following steps:

  1. Create a Virtual Private Cloud:

  1. Create an EC2 instance: two for Marathon, three for Mesos master servers, and three for the Mesos slave servers:

  1. Install the Mesos master application, Marathon:
  1. Install ZooKeeper:

  1. Insert Docker to run Docker images on all the slave servers. We will install the Mesos slave as well:

  1. Use Marathon to deploy the application, and those tasks will launch on slave servers. We will use a WordPress Docker container:

Also, we will see how to load-balance Marathon and Mesos master servers. This will help to manage the Mesos UI and Marathon UI. It is not necessary to go every time on each Marathon server as the load-balancer will take care of that. If one of the master servers is down, it will redirect to another one, so this is where your management will become easy:

Use Marathon-lb HAProxy to load-balance your application request:

This was a quick overview of what we are going to cover in the upcoming chapters.

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