Deploying and configuring a Mesos cluster using SaltStack
The SaltStack platform, or Salt, is a Python-based open source configuration management software and a remote execution engine. This module explains how we can use SaltStack to install a Mesos cluster with Marathon and a few other tools in production. SaltStack is an alternative to Puppet, Ansible, Chef, and others. As with the others, it is used to automate the deployment and configuration of software on multiple servers. The SaltStack architecture consists of one node as the SaltStack master and other nodes as the minions (slaves). There are also two different roles: one master role to perform cluster actions and a slave role to run the Docker containers.
The following packages will be installed for the role master:
ZooKeeper
The Mesos master
Marathon
Consul
The slave role will have the following packages installed:
The Mesos slave
Docker
cAdvisor (used to export metrics to prometheus)
Registrator (used to register services with Consul)
Weave...