Get Started - Mesos

By the end of this book, you will have a starter kit for playing around with Terraform, Docker, Consul, Zookeeper, Mesos, and Marathon.

This book is intended to be a walkthrough for beginners, and questions every step of the way. The questions are framed from a beginner mindset, feel free to add more questions as there are no dumb questions.

Prerequisite : AWS account

Future work:

  1. Create an automated test suite for testing the instructions in this guide.
  2. Eliminate AWS prerequisite by using vagrant.
  3. Explore other cloud providers.

Code repository : https://github.com/saipranav/get-started-mesos


Just to give a big picture before starting. We are going to use Terraform to create 3 instances in AWS and set up docker, consul, exhibitor, mesos, marathon master and slaves/agents in that order.

Terraform is a CLI tool for abstracting infrastructure as code.

Docker is a tool to run code and ship code / environment efficiently by leveraging containerization technologies.

Consul which primarily takes care of service discovery between our application services.

Zookeeper is the primary storage engine that Mesos and Marathon use for maintaining the state of the cluster.

Container pilot sits inside the container helps us in (re)registering the service in consul catalog and repeatedly does health check and informs consul.

Mesos is a resource aggregator which abstracts a cluster of infrastructure resources and exposes them as a readily useable API.

Marathon is the framework which runs on top of mesos we'll be using for this tutorial. It is the defacto framework for orchestrating docker containers on a Mesos cluster.


Q: Why not just use DCOS for this tutorial?

A: DCOS is an awesome product, and it might be great for what you're trying to achieve. DCOS is also comprised of 25+ components which while valuable, can be very overwhelming. This tutorial is intended to teach you about some of those core components and demonstrate the value that DCOS provides.


Contributors:

Alan Scherger

Sai Pranav

results matching ""

    No results matching ""