0

Is it OK or would it lead to problems wrt split/brain etc?

Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156

1 Answers1

0

You should not worry about split brain. ZK only works when it has quorum majority. If nodes do not have quorum majority they reject writes. This ensures Zk will not work in split-brain states. A good explanation is here.

You should not put the client on the same machine client can influence the ZK's performance (the client is a memory hog, consumes excessive network, etc.).

Community
  • 1
  • 1
ieugen
  • 2,293
  • 2
  • 18
  • 19
  • I'm not too worried about ZK performance. Apart from leader election - and leader changes should happen rarely in practice - I intend to use it as a name service and maybe for do-once-at-startup things like getting configuration. – Evgeniy Berezovsky Aug 15 '12 at 23:05