-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PD configuration updates do not work #487
Comments
…ration check instead Signed-off-by: Aylei <rayingecho@gmail.com>
I thought this is a known problem. We also need to figure out which values (not only pd config) won't take effect after upgrade. For pd, the restful api (or directly using the code of pd-ctl) might be a solution, for tikv, I'm not sure is there any simple way to hot reload config without restart the process. |
#479 introduce rolling-updates of PD/TiKV/TiDB nodes on configuration update, 'restart' is the intended behavior. |
Ah, I see, I prefer documenting it too. |
Bug Report
kubernetes: 1.12.6
tidb-operator: latest
What did you do?
pd.maxReplicas
from 3 to 5 invalues.yaml
helm upgrade
curl <host>:2379/pd/api/v1/config
What did you expect to see?
The
replication.max-replicas
is updated to 5.What did you see instead?
The
replication.max-replicas
is still 3.According to @nolouch , PD do not change the configuration once the config file has been persisted. We may have to:
TidbCluster
CRD)After investigating the code https://github.com/pingcap/pd/blob/master/server/leader.go#L398-L411 , the schedule configurations and replication configurations are persisted in ETCD and cannot be updated through config file.
The text was updated successfully, but these errors were encountered: