You need a majority, if you have 3 zk then 2 alive will do. We run a separate zk cluster that we share between kafka and mesos. It seems normal to run them on masters as well, however we felt it safer to keep zk separate.
2016-02-04 10:18 GMT+01:00 Rene Moser <[email protected]>: > Hi > > I am new to mesos and setup a cluster where I run zookeeper on master > nodes. > > Now I wondered if this is the best practice, or if it would be better to > run zookeper on slaves. > > The problem I see is you generally won't have much masters, 3 in my > case. If you run zookeeper on the masters, you got a quorum of 2. If one > goes down the other 2 can not elect a master right? > > On the other hand, if I run a bunch of slaves running zookeeper, they > can simply elect a new master if one goes down. The problem is here, the > recalculation of quorum, if a new slaves is spawned or stopped. > > Any hints on this? > > Regards > René > >

