This is a playbook which I use for deploying clusters utilizing the following technologies:
- Oracle Java 8 for Zookeeper and Marathon
- Apache Mesos w/ Zookeeper for Cluster Scheduling
- Mesosphere Marathon for long running task and Docker support
- Docker for containers
- Weave for multi-host Docker networking and DNS resolution
This playbook supports 1..N Mesos Master nodes and 1..N Mesos slave based nodes.
See the blog entry and series related to this playbook at: Eating my own Dog Food: Building a PaaS
Out of the box after cloning this repo a simple vagrant up
will create a single Master and 2 Slave cluster. This cluster will create a weave network for docker to docker multi-host networking with a DNS name of *.mycompany.local.
- Modify the
vagrant
file to reflect the desired number of slave nodes and any slave attribution. This file contains comments and examples to get you started - Modify the
VagrantFile
and change thenum_slaves
value to be the number of slaves you created in the vagrant file. - Add any custom options in the
masters.yml
andslaves.yml
. - Run
vagrant up