You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I change the fields under spec.config, zookeeper-operator does not issue a rolling update to reflect the changed config. For example, if I change the spec.config.commitLogCount field to 100, the operator reconciles the configMap to reflect the change. So in the pod, /conf/zoo.cfg which is where the configMap mounted has the commitLogCount field set to 100. But the /data/conf/zoo.cfg which is the config used by zookeeper still has the commitLogCount set to default value as 500.
Steps to reproduce:
Deploy a simple zookeeper cluster with the following yaml:
Zookeeper-operator is missing the functionality to restart the pods when config is changed.
Suggestions for an improvement
We suggest to attach the hash of config as annotations to zookeeper's statefulSet's template. So that when the config is changed, the changed annotation would trigger statefulSet's rolling update.
The text was updated successfully, but these errors were encountered:
@tianyin Wenqing noticed that zookeeper-operator does not restart the pods when the config is changed when he was using the zookeeper-operator. We haven't used Acto to test zookeeper-operator yet.
And our current oracle wouldn't be able to find this bug, because we don't have application specific knowledge to check whether the application used the new config. We would report false negative because there is a matching delta in the configMap.
Description
When I change the fields under
spec.config
, zookeeper-operator does not issue a rolling update to reflect the changed config. For example, if I change thespec.config.commitLogCount
field to100
, the operator reconciles the configMap to reflect the change. So in the pod,/conf/zoo.cfg
which is where the configMap mounted has thecommitLogCount
field set to100
. But the/data/conf/zoo.cfg
which is the config used by zookeeper still has thecommitLogCount
set to default value as500
.Steps to reproduce:
/data/conf/zoo.cfg
:Importance
should-have
Location
Zookeeper-operator is missing the functionality to restart the pods when config is changed.
Suggestions for an improvement
We suggest to attach the hash of config as annotations to zookeeper's statefulSet's template. So that when the config is changed, the changed annotation would trigger statefulSet's rolling update.
The text was updated successfully, but these errors were encountered: