Hi,

1. Right - only the configuration parameters that live in the dynamic file
are controlled by dynamic reconfig. The dynamic files are
kept in sync across all the ZK servers, whereas the static files may not be
the same.

There is a backward compatibility mode, where you start up a server without
a dynamic file, and ZK copies over whatever
it can from the static to the dynamic file. From that point, you're not
supposed to manually change the dynamic file - ZK
manages that for you, and you only affect the configuration via reconfig
commands.

2. Dynamic files are written out upon commit of new configurations created
via reconfig, or, more precisely, when a server learns about such a commit.
The number is the zxid of the commit.

3. I don't think there's any purge job that was implemented, so the old
copies will

4. There is a fixed set of things that can live in the dynamic file. You
can't just put anything there, because ZK still looks for other config
parameters in the static file.

Please see details in the manual:
https://zookeeper.apache.org/doc/r3.5.5/zookeeperReconfig.html

Thanks,
Alex

On Thu, May 30, 2019 at 10:49 AM rammohan ganapavarapu <
[email protected]> wrote:

> Hi,
>
> One more question
>
> 4. Is there any list of configs that should be only in static file to boot
> up the zookeeper? or can i have some thing like this?
>
> cat zoo.cfg
> dynamicConfigFile=/opt/zookeeper/conf/dynamic.cfg
>
> cat dynamic.cfg
> # All zookeeper configurations
>
> will this work?
>
> On Thu, May 30, 2019 at 9:59 AM rammohan ganapavarapu <
> [email protected]> wrote:
>
> > Hi,
> >
> > I have  few questions regarding dynamic reconfig feature,
> >
> > 1. this feature can only reconfigure the properties or configuration
> > defined in dynamic configuration file and not the configs in static
> default
> > zoo.cfg file?
> > 2. What is the criteria to create version extension for dynamic config
> > file? ex: zoo.cfg.dynamic.100000000, i mean when does zk create new
> version
> > file, i have change a property in static file and restarted zk but it
> didnt
> > create new version file so it will only create new version when a config
> in
> > dynamic file changes?
> > 3. How many copies/versions of these dynamic config files will get
> created
> > and is there a purge task that zk runs to cleanup older version files?
> >
> >
> >
> > Thanks,
> > Ram
> >
>

Reply via email to