Marathon supports a high availability mode of operation by default. High availability mode allows applications to continue running if an individual instance becomes unavailable. This is accomplished by running several Marathon instances that point to the same ZooKeeper quorum. ZooKeeper is used to perform leader election in the event that the currently leading Marathon instance fails.
Marathon runs in HA mode by default. To disable HA mode, use the
--disable_ha command line argument.
Each Marathon instance must be launched with the same ZooKeeper quorum specified. For example, if your quorum is
zk://22.214.171.124:2181,126.96.36.199:2181,188.8.131.52:2181/marathon then launch each instance in the normal way with the argument:
Unlike the Mesos web console, the Marathon web console will not redirect to the currently leading Marathon instance. However, it will proxy requests, so the data shown in the web console will be the currently running state of launched applications. The same is true of requests to Marathon’s REST API.