Most businesses depend on the availability of the infrastructure for continuous business operations. Mesos as a data center kernel not only provides high availability to the applications, but also has several features to ensure that various Mesos components are resilient to failures.
Mesos high availability depends critically on the availability of the Mesos master. As noted previously, Mesos uses ZooKeeper to ensure that one Mesos master is always available even in face of failures. The ZooKeeper elects the acting master, and the other master will be on standby. We have seen how to run Mesos with ZooKeeper in Chapter 6, Understanding Mesos Internals.
ZooKeeper configuration, at the minimum, should set the dataDir
. Its value must be set to the persistent storage directory and never to the default value /tmp
given in the sample ZooKeeper configuration file. In multiserver settings, a ZooKeeper instance determines its identity reading the myid
field...