You have to  clean the mesos files and restart the masters


Sent from my Samsung device


-------- Original message --------
From: Ashic Mahtab <[email protected]>
Date: 04/07/2015 14:08 (GMT+01:00)
To: [email protected]
Subject: Lots of master elections

Hello,
Just getting started with Mesos, and in the process of "graduating" from 
Vagrant to a cluster on Azure. Here's what I have:

* 1 Zookeeper node exposing 2181, running as expected.
* 2 Mesos masters - mesos1.x.net, mesos2.x.net. Both exposing 5050. These have 
private and public ips. All nodes are on the same network, and have access to 
each other.

[I'll set up a third master, and add slaves soon.]

It all seems ok, and the web UI works. I can see mesos entries in Zookeeper. 
However, I've seeing a couple of things:

* A node is elected master. And about a minute later, another election is held. 
(say, mesos1.x.net)
* If the other node wins, in the UI, I get the message that this is no longer 
the master and am redirected.
* Sometimes the redirection is to mesos2.x.net, and all is fine (except another 
election soon).
* Sometimes the redirection is to the internal ip of mesos2.x.net, which 
obviously gets a 404.

I should add that all the nodes are the lowest powered crappy Azure instances 
you can get.

Is this constant re-election "normal"? Should I specify hostnames or public ips 
in /etc/default/mesos-master? I tried the latter, but the symptoms remained. 
Will adding a a third master make it work? (I have quorum set to 2).

Any help will be greatly appreciated.

Thanks,
Ashic.

Reply via email to