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?

Also what are the valid zk configs that I would need to add on these 2 new
VM's zk server config file?

Regards,
Gaurav

On Mon, 19 Jun, 2023, 21:06 Patrick Hunt, <ph...@apache.org> 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 <gaupand...@gmail.com>
> 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, <wander4...@gmail.com> wrote:
> >
> > > Can you stop the services for reconfig, or you need an online reconfig?
> > >
> > > Best,
> > > tison.
> > >
> > >
> > > Gaurav Pande <gaupand...@gmail.com> 于2023年6月19日周一 11:22写道:
> > >
> > > > Hi Guys,
> > > >
> > > > Any help on this thread please?
> > > >
> > > > Regards,
> > > > Gaurav
> > > >
> > > > On Sun, 18 Jun, 2023, 20:14 Gaurav Pande, <gaupand...@gmail.com>
> > 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
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to