You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by "Kj, Anisha" <An...@dell.com> on 2022/04/25 15:56:04 UTC

Dynamic config file is not updated while scaling down zookeeper replicas with 3.8.0 image

Hi Team,

I am facing an issue while scaling down zookeeper replicas


  1.  create zk cluster with 3 replicas
  2.  kubectl edit zookeeopercluster , change replica to 1
  3.  we can see that pod count is 1
  4.  Loginto kubectl exec -it zookeeper-0 /bin/bash and see the contents of cat /data/conf/zoo.cfg and I could see the dynamic config file is still having 3 server entries as below  and the issue is seen only with 3.8.0. It is working fine with 3.6.3 and 3.7.0
apache-zookeeper-3.8.0-bin# cat /data/conf/zoo.cfg.dynamic.200000013
server.1=zookeeper-0.zookeeper-headless.default.svc.cluster.local:2888:3888:participant;0.0.0.0:2181
server.2=zookeeper-1.zookeeper-headless.default.svc.cluster.local:2888:3888:participant;0.0.0.0:2181
   server.3=zookeeper-2.zookeeper-headless.default.svc.cluster.local:2888:3888:participant;0.0.0.0:2181
Can someone take a look at this?
Regards,
Anisha




Internal Use - Confidential