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, <gaupand...@gmail.com> 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, <ph...@apache.org> 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 <gaupand...@gmail.com> >> 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, <ph...@apache.org> wrote: >> > >> > > On Mon, Jun 19, 2023 at 8:47 AM Gaurav Pande <gaupand...@gmail.com> >> > 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, <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 >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> >