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
- Vagrant
- A Vagrant provider to run virtual machines (e.g. VirtualBox)
- Ansible
Clone the repository
$ git clone git@github.com:mendrugory/mesos-vagrant.git
$ cd mesos-vagrantStart up the virtual machines
$ vagrant upConfigure the virtual machines
$ ansible-playbook mesos.ymlNow you can check any of the Mesos servers (e.g. 192.168.33.11:5050):

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

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


And after a while we will see:



You can check the repo here.