Vagrant script to easily setup an Apache Mesos cluster on DigitalOcean.
By default the following machines are created and communicating via a private network:
- mesos-master-1: Zookeeper, Mesos Master & Mesos Worker
- mesos-worker-N: Mesos Worker, Docker & Marathon
- haproxy-1: HA proxy with dynamic configuration
After vagrant up the cluster is ready to use. Mesos is configured to work with docker container. All machines use the UFW firewall and only reachable via ssh. Setup a ssh tunnel (like shown below) to access web consoles.
- Vagrant
- Vagrant Plugins
- Digital Ocean account
$> git clone https://github.com/mrico/vagrant-mesos-do.git
Set your DigitalOcean API token:
$> export DO_TOKEN=INSERT_YOUR_TOKEN_HERE
$> vagrant up
- increase variable
num_workersin Vagrantfile
All machines have a ufw firewall running and are not accessible via public IP by default. Using SSH tunneling is the recommended via to access the web consoles.
$> ssh -f root@{PUBLIC_IP_OF_MESOS_MASTER_1} -L5050:{PUBLIC_IP_OF_MESOS_MASTER_1}:5050 -N
Navigate your browser to http://localhost:5050.
$> ssh -f root@{PUBLIC_IP_OF_MESOS_WORKER_1} -L8080:{PUBLIC_IP_OF_MESOS_WORKER_1}:8080 -N
Navigate your browser to http://localhost:8080.