You need a minimum of 3 ZK instances to have any redundancy, because when an instance fails the remaining instances need to be able to form a quorum. To do this, more than half of the instances need to be able to communicate with each other.
You can certainly run multiple instances on a single host though if that's what you want, you just need to modify the configuration so that the ports don't conflict between instances. cheers On Tue, Nov 5, 2013 at 3:38 PM, erolagnab <[email protected]> wrote: > Hi, > > Just wondering is it possible to run zookeeper in 2 machine so when one > machine dies, zookeeper is still up? > I've tried to run 3 zookeeper instances each machine but it doesn't work. > > Thanks, > > Ero > > > > -- > View this message in context: > http://zookeeper-user.578899.n2.nabble.com/Running-Zookeeper-in-2-machines-tp7579232.html > Sent from the zookeeper-user mailing list archive at Nabble.com. >
