RE: Can the leader of a Zookeeper be specifically selected at startup?

2022-06-20 Thread Kathryn Hogg
riginal Message- From: Szalay-Bekő Máté [mailto:szalay.beko.m...@gmail.com] Sent: Monday, June 20, 2022 10:29 AM To: UserZooKeeper Cc: DevZooKeeper ; Heller, George A III CTR (USA) Subject: Re: Can the leader of a Zookeeper be specifically selected at startup? {External email message: This e

Re: Can the leader of a Zookeeper be specifically selected at startup?

2022-06-20 Thread Szalay-Bekő Máté
I also don't really know why you would need a single host being "preferred" as leader. I think the safest (and the best practice) is to make sure all your ZooKeeper servers are the same in terms of networking / performance / etc. Not knowing your goals, maybe the Observer feature is also something

Re: Can the leader of a Zookeeper be specifically selected at startup?

2022-06-20 Thread Enrico Olivelli
George, really, it should not be a problem which is the leader. it is automatically chosen. Each node should be ideally as powerful as the other peers. why do you need this "preferred leader" ? I am afraid that you have some flaw in your design Enrico Il giorno lun 20 giu 2022 alle ore 05:39 Kez

Re: Can the leader of a Zookeeper be specifically selected at startup?

2022-06-19 Thread Kezhu Wang
Hi, I think this could be achieved with help from `reconfig`[1]: * Configs all nodes with `standaloneEnabled=false`, `reconfigEnabled=true`. * Starts node-2 as sole quorum participant. * Now node-2 is the leader. You will see "No server failure will be tolerated. You need at least 3 servers”. * St