Now, it is time to add the slaves to our configuration to complete our master-slave setup.
To do so, follow these simple steps:
- Start the docker service on all slaves with these commands:
sudo service docker start
sudo service docker status
- Start the slave services, but first, there are a few things to consider. We should have a Marathon user here:
id marathon //include this on all 3 servers
We need to add a Marathon user; otherwise, your application will not get deployed, so the Marathon user should be there on all the three services.
- Change the directory to /etc/mesos-slave, and then, once in this directory, type ls -rlt. You should see the files with containerizers. Run cat containerizer, and you should see the two files for Mesos and Docker.
This information should be available on all the three servers. Now we can start the slave services as follows:
sudo...