Skip to Main Content
Learn Apache Mesos
book

Learn Apache Mesos

by Manuj Aggarwal
October 2018
Intermediate to advanced content levelIntermediate to advanced
248 pages
4h 46m
English
Packt Publishing
Content preview from Learn Apache Mesos

Failover mechanism

To check the failover mechanism, we will first go to master2, and stop the Docker instances using the following command:

sudo docker stop (Container ID)

Here, you can check in Marathon that cassandra1 has stopped.

On refreshing the page, you can see it has created the instance on master2, where we have stopped it. This is done automatically. Here, the scenario where we have seen one of the containers went down and a backup was automatically created. Now, let's validate this by running the following command:

sudo docker ps -a

You will find that your old container is down, and the new one, which was created automatically, will be up.

What happens if your server is down? For example, let's shut down our master2 server. To ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mesos in Action

Mesos in Action

Roger Ignazio
SELinux

SELinux

Bill McCarty
Linux: Powerful Server Administration

Linux: Powerful Server Administration

Uday Sawant, Oliver Pelz, Jonathan Hobson, William Leemans
Apache Cookbook, 2nd Edition

Apache Cookbook, 2nd Edition

Rich Bowen, Ken Coar

Publisher Resources

ISBN: 9781789137385Supplemental Content