Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tikv在线修改配置报错
Error when modifying the labels attribute of tikv online
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tikv在线修改配置报错
Error when modifying the labels attribute of tikv online
The error message indicates that modifying the labels attribute is prohibited.
So the label attribute cannot be dynamically modified after the tikvserver is started, right?
I didn’t see labels in the dynamically supported configuration items.
Try using tiup cluster edit-config
.
That’s right, my current cluster doesn’t use the tiup tool. After starting, I use pd-ctl/tikv-ctl to modify the configuration.
However, when I use this command to modify the labels attribute of TiKV online, it reports an error.
./tikv-ctl --host 127.0.0.1:50160 modify-tikv-config -n server.labels -v “az=“1””
DebugClient::modify_tikv_config: RpcFailure: 2-UNKNOWN “failed to update config, err: “config labels cannot be changed””
Because it is not supported. The link I posted above does not mention support for dynamically modifying the labels attribute.
Okay, so if I want to do multi-region deployment, I must first statically configure the labels for TiKV and then start it, right?
Is the absence of the tiup tool because the version is lower than 4.0?
There is an operator for k8s deployment, isn’t the configuration modified in the same way?
This error clearly indicates that online modification is not supported, right?
Yes, the labels setting of TiKV does not support online modification.
Check if there are any mistakes. If it’s correct and you still want to make changes, it’s recommended to test it in a testing environment first. Some parameters cannot be changed online, but you can modify the YAML file.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.