Closed sgkim126 closed 9 years ago
As I understand, QuorumPeerMain
automatically turns on the server as a cluster if the list is defined in the config? So we don't need any other conditional or something like that, do we?
If true, LGTM.
Yes, as you understand. QuorumPeerMain
automatically turns on as cluster if the list is defined, and turns on as standalone if the list is not defined.
Brill. LGTM.
I fixed some typo. I'll push it after travis passes.
Currently, beyond launches ZooKeeper as standalone mode. This patch makes beyond launch ZooKeeper as clustered mode when there are server lists in the zookeeper config file and ass standalone mode when there is no server lists in the zookeeper config file. This behavior is implemented on QuorumPeerMain so This patch just uses QuorumPeerMain instead of ZooKeeperServerMain.
You have to add
dataDir
/myid file to use clustered mode. It's ZooKeeper's restriction. Read http://zookeeper.apache.org/doc/r3.4.6/zookeeperStarted.html#sc_RunningReplicatedZooKeeper for more information.