Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-20 Thread Gaurav Pande
Hi Guys,

Just to add one more thing which I forgot to ask earlier is there some kind
of rollback concept valid for rolling back to single zookeeper and removing
the quorum if the quorum did'nt work ?

 If so what are the steps please.

Regards,
Gaurav

On Tue, 20 Jun, 2023, 01:12 Gaurav Pande,  wrote:

> Indeed I went through this Admin guide for my version 3.5.8 and iam a bit
> confused with this attribute standaloneEnabled it doesn't seems to present
> as a part of Pristine/out of the box config but docs says its value is true
> by default, what does it exactly govern , more specific is this be part of
> my ensemble zk server config?
>
> PS thanks for the GitHub repo link
>
> Regards,
> Gaurav
>
> On Tue, 20 Jun, 2023, 01:04 Patrick Hunt,  wrote:
>
>> It really depends on your requirements. You should read the admin docs for
>> insight and examples, start here:
>> https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_designing
>>
>> That said, I have a project here which I use for config
>> generation/testing.
>> YMMV:
>> https://github.com/phunt/zkconf
>>
>> Patrick
>>
>> On Mon, Jun 19, 2023 at 11:32 AM Gaurav Pande 
>> wrote:
>>
>> > Okay thanks, and could you share what's the standard config for
>> ensemble as
>> > example? I mean what all parameters it includes.
>> >
>> >  Also do I need to add standaloneEnabled=false on these 2 new zk servers
>> > config file as a part of initial base ensemble config as by default this
>> > parameter value  is true?  So that Making 2 zk's  run in replicated mode
>> > from starting (starting one at a time)
>> >
>> > Regards,
>> > Gaurav
>> >
>> >
>> > On Mon, 19 Jun, 2023, 22:03 Patrick Hunt,  wrote:
>> >
>> > > On Mon, Jun 19, 2023 at 8:47 AM Gaurav Pande 
>> > 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,  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, 
>> wrote:
>> > > > > >
>> > > > > > > Can you stop the services for reconfig, or you need an online
>> > > > reconfig?
>> > > > > > >
>> > > > > > > Best,
>> > > > > > > tison.
>> > > > > > >
>> > > > > > >
>> > > > > > > Gaurav Pande  于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 

Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-19 Thread Gaurav Pande
Indeed I went through this Admin guide for my version 3.5.8 and iam a bit
confused with this attribute standaloneEnabled it doesn't seems to present
as a part of Pristine/out of the box config but docs says its value is true
by default, what does it exactly govern , more specific is this be part of
my ensemble zk server config?

PS thanks for the GitHub repo link

Regards,
Gaurav

On Tue, 20 Jun, 2023, 01:04 Patrick Hunt,  wrote:

> It really depends on your requirements. You should read the admin docs for
> insight and examples, start here:
> https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_designing
>
> That said, I have a project here which I use for config generation/testing.
> YMMV:
> https://github.com/phunt/zkconf
>
> Patrick
>
> On Mon, Jun 19, 2023 at 11:32 AM Gaurav Pande 
> wrote:
>
> > Okay thanks, and could you share what's the standard config for ensemble
> as
> > example? I mean what all parameters it includes.
> >
> >  Also do I need to add standaloneEnabled=false on these 2 new zk servers
> > config file as a part of initial base ensemble config as by default this
> > parameter value  is true?  So that Making 2 zk's  run in replicated mode
> > from starting (starting one at a time)
> >
> > Regards,
> > Gaurav
> >
> >
> > On Mon, 19 Jun, 2023, 22:03 Patrick Hunt,  wrote:
> >
> > > On Mon, Jun 19, 2023 at 8:47 AM Gaurav Pande 
> > 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,  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,  wrote:
> > > > > >
> > > > > > > Can you stop the services for reconfig, or you need an online
> > > > reconfig?
> > > > > > >
> > > > > > > Best,
> > > > > > > tison.
> > > > > > >
> > > > > > >
> > > > > > > Gaurav Pande  于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
> 

Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-19 Thread Patrick Hunt
It really depends on your requirements. You should read the admin docs for
insight and examples, start here:
https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_designing

That said, I have a project here which I use for config generation/testing.
YMMV:
https://github.com/phunt/zkconf

Patrick

On Mon, Jun 19, 2023 at 11:32 AM Gaurav Pande  wrote:

> Okay thanks, and could you share what's the standard config for ensemble as
> example? I mean what all parameters it includes.
>
>  Also do I need to add standaloneEnabled=false on these 2 new zk servers
> config file as a part of initial base ensemble config as by default this
> parameter value  is true?  So that Making 2 zk's  run in replicated mode
> from starting (starting one at a time)
>
> Regards,
> Gaurav
>
>
> On Mon, 19 Jun, 2023, 22:03 Patrick Hunt,  wrote:
>
> > On Mon, Jun 19, 2023 at 8:47 AM Gaurav Pande 
> 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,  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 
> > > > 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,  wrote:
> > > > >
> > > > > > Can you stop the services for reconfig, or you need an online
> > > reconfig?
> > > > > >
> > > > > > Best,
> > > > > > tison.
> > > > > >
> > > > > >
> > > > > > Gaurav Pande  于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
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-19 Thread Gaurav Pande
Okay thanks, and could you share what's the standard config for ensemble as
example? I mean what all parameters it includes.

 Also do I need to add standaloneEnabled=false on these 2 new zk servers
config file as a part of initial base ensemble config as by default this
parameter value  is true?  So that Making 2 zk's  run in replicated mode
from starting (starting one at a time)

Regards,
Gaurav


On Mon, 19 Jun, 2023, 22:03 Patrick Hunt,  wrote:

> On Mon, Jun 19, 2023 at 8:47 AM Gaurav Pande  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,  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 
> > > 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,  wrote:
> > > >
> > > > > Can you stop the services for reconfig, or you need an online
> > reconfig?
> > > > >
> > > > > Best,
> > > > > tison.
> > > > >
> > > > >
> > > > > Gaurav Pande  于2023年6月19日周一 11:22写道:
> > > > >
> > > > > > Hi Guys,
> > > > > >
> > > > > > Any help on this thread please?
> > > > > >
> > > > > > Regards,
> > > > > > Gaurav
> > > > > >
> > > > > > On Sun, 18 Jun, 2023, 20:14 Gaurav Pande, 
> > > > 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: Convert Standalone zookeeper to A 3 node Quorum

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


Re: Convert Standalone zookeeper to A 3 node Quorum

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


Re: Convert Standalone zookeeper to A 3 node Quorum

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


Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-19 Thread Gaurav Pande
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,  wrote:

> Can you stop the services for reconfig, or you need an online reconfig?
>
> Best,
> tison.
>
>
> Gaurav Pande  于2023年6月19日周一 11:22写道:
>
> > Hi Guys,
> >
> > Any help on this thread please?
> >
> > Regards,
> > Gaurav
> >
> > On Sun, 18 Jun, 2023, 20:14 Gaurav Pande,  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
> > >
> > >
> >
>


Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-18 Thread Cody Amen
I’m working on initiating zookeeper at startup on my Apache server. Super rough 
draft but I don’t know if that helps interfacing your servers.

Sent from my iPhone

> On Jun 18, 2023, at 10:45 PM, tison  wrote:
> 
> Can you stop the services for reconfig, or you need an online reconfig?
> 
> Best,
> tison.
> 
> 
> Gaurav Pande  于2023年6月19日周一 11:22写道:
> 
>> Hi Guys,
>> 
>> Any help on this thread please?
>> 
>> Regards,
>> Gaurav
>> 
>>> On Sun, 18 Jun, 2023, 20:14 Gaurav Pande,  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
>>> 
>>> 
>> 


Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-18 Thread tison
Can you stop the services for reconfig, or you need an online reconfig?

Best,
tison.


Gaurav Pande  于2023年6月19日周一 11:22写道:

> Hi Guys,
>
> Any help on this thread please?
>
> Regards,
> Gaurav
>
> On Sun, 18 Jun, 2023, 20:14 Gaurav Pande,  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
> >
> >
>


Re: Convert Standalone zookeeper to A 3 node Quorum

2023-06-18 Thread Gaurav Pande
Hi Guys,

Any help on this thread please?

Regards,
Gaurav

On Sun, 18 Jun, 2023, 20:14 Gaurav Pande,  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
>
>


Convert Standalone zookeeper to A 3 node Quorum

2023-06-18 Thread Gaurav Pande
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