Last week I felt nostalgic about working with Mesos, because I no longer have any projects that use this technology and people only ask for Kubernetes.

Mesos is a project that was born at Berkeley, is now under the Apache umbrella, and whose goal is managing computer clusters. It helps us create distributed systems with the feeling that we are working with a single, really big machine. Mesos gathers the resources of all the machines that join the cluster and takes care of deploying applications wherever there are enough resources.

Mesos is very powerful and, according to some studies, it can scale to a huge number of nodes much better than Kubernetes. But we don’t need to compare Mesos and Kubernetes because, according to the Mesosphere folks, they can work together (one on top of the other).

I worked on Mesos projects, with its orchestrator Marathon, for 3 years, and the results were really good, but the market is moving towards Kubernetes and we have to go where the market goes.

So I wanted to release a useful tool for those who want to play with Mesos or try their systems locally (if they can). The project launches 3 virtual machines that form the Mesos cluster.

Dependencies

Clone the repository

$ git clone git@github.com:mendrugory/mesos-vagrant.git
$ cd mesos-vagrant

Start up the virtual machines

$ vagrant up

Configure the virtual machines

$ ansible-playbook mesos.yml

Now you can check any of the Mesos servers (e.g. 192.168.33.11:5050):

Mesos Dashboard

And the Marathon servers (e.g. 192.168.33.11:8080):

Marathon Dashboard

I also installed Docker, so we can try launching 3 replicas of Nginx in our Mesos cluster:

Nginx Marathon General

Nginx Marathon General

And after a while we will see:

Nginx Marathon General

Nginx Marathon General

Nginx Marathon General

You can check the repo here.