On Mon, Jun 19, 2023 at 8:47 AM Gaurav Pande <[email protected]> wrote:
> Hi Patrick, > > Thanks for guidance here , based on below I only have presently 1 zk node > so if I provision 2 new VM and install same version of zookeeper on them > should I start them as standalone zookeepers first and then make changes to > there server config file? > > No, you specifically want to add them as part of the ensemble, one at a time in sequence (see 2). > Also what are the valid zk configs that I would need to add on these 2 new > VM's zk server config file? > > You'll need a regular ensemble config, not a standalone. Patrick > Regards, > Gaurav > > On Mon, 19 Jun, 2023, 21:06 Patrick Hunt, <[email protected]> wrote: > > > Two ways to do it come to mind, which I've used in the past: > > > > 1) most straightforward is to "clone" the repos for the two new members > of > > the ensemble in their respective configs/datadirs. Just make sure to > update > > the configs appropriately. Including the "myid" for each server. Then > > restart the ensemble and verify. > > > > 2) You can't go from 1->3 servers just by adding two new servers to the > > ensemble as they may form a quorum on the "zero" zxid, rather than the > zxid > > of the existing member. Rather you would need to go from 1->2, with > quorum, > > and then from 2->3 with quorum. This will ensure that the true state of > the > > original quorum is maintained (this is what we implemented for Cloudera > > Manager to ensure proper functioning when increasing quorum size). > > > > Good luck, > > > > Patrick > > > > > > On Mon, Jun 19, 2023 at 12:02 AM Gaurav Pande <[email protected]> > > wrote: > > > > > Hi tison, > > > > > > When you say stop services you mean existing standalone Zk service > right? > > > , if that's the case then yes we can. But what's the process ? Also can > > it > > > be done without re-start I didn't know , can you share both > > process/steps? > > > > > > On Mon, 19 Jun, 2023, 10:15 tison, <[email protected]> wrote: > > > > > > > Can you stop the services for reconfig, or you need an online > reconfig? > > > > > > > > Best, > > > > tison. > > > > > > > > > > > > Gaurav Pande <[email protected]> 于2023年6月19日周一 11:22写道: > > > > > > > > > Hi Guys, > > > > > > > > > > Any help on this thread please? > > > > > > > > > > Regards, > > > > > Gaurav > > > > > > > > > > On Sun, 18 Jun, 2023, 20:14 Gaurav Pande, <[email protected]> > > > wrote: > > > > > > > > > > > Hello Guys, > > > > > > > > > > > > Iam new in this space, I wanted to know process/steps to > convert a > > > > > single > > > > > > Zk node in standalone presently to a 3 node ZK quorum . > > > > > > > > > > > > What steps should I perform to add make my standalone Zk node a > > > Quorum > > > > of > > > > > > 3 zk nodes? > > > > > > > > > > > > I am using ZK version 3.5.8 presently. > > > > > > > > > > > > Note - I have single Zookeeper(Standalone) and 3 Kafka brokers at > > > this > > > > > > point. > > > > > > > > > > > > Regards, > > > > > > Gaurav > > > > > > > > > > > > > > > > > > > > > > > > > > >
