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://184.108.40.206:2181,220.127.116.11:2181,18.104.22.168: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.