Home

Awesome

Mesos cluster on CoreOS via Vagrant

This repo provides a Vagrantfile as well as a cloud_config for a three-node CoreOS cluster running the latest stable versions of Mesos and Marathon using the VirtualBox software hypervisor. it was forked from coreos/coreos-vagrant and configured to run Mesos cluster components.

Components

The cluster runs the following components on each node:

General setup

Install dependencies

Clone this project and get it running!

git clone https://github.com/tobilg/coreos-mesos-cluster.git
cd coreos-mesos-cluster

Startup, status and SSH

The VirtualBox provider is the default Vagrant provider. Use this if you are unsure.

Startup

vagrant up

Status check

vagrant status

will show something like

Current machine states:

core-01                   running (virtualbox)
core-02                   running (virtualbox)
core-03                   running (virtualbox)

Please note: It can take a while until all units are up and running, because each node will download four Docker images:

You can check via docker ps or systemctl status <serviceName> if the units/services are up and running. Depending on your internet connection, this can take up to 30 minutes (for the first launch).

SSH (to one host)

vagrant ssh core-01 -- -A 

For additional docs please have a look at the original docs

Check Mesos and Marathon functionality

The Mesos Masters/Slaves will be launched on every cluster node, as well as Marathon. Check the Mesos Master UI and the Marathon UI.