Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Latest commit

 

History

History
72 lines (49 loc) · 1.99 KB

README.md

File metadata and controls

72 lines (49 loc) · 1.99 KB

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:

  • Apache ZooKeeper 3.4.6
  • Mesos 0.28.0 (Masters / Slaves)
  • Marathon 0.15.3

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:

  • Mesos Master
  • Mesos Slave
  • ZooKeeper
  • Marathon

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.