Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 修改机器名会影响tidb吗
Will changing the machine name affect the already deployed TiDB in a production environment?
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 修改机器名会影响tidb吗
Will changing the machine name affect the already deployed TiDB in a production environment?
Modifying the hostname will not affect the already deployed TiDB.
If you are connecting from another machine using an IP address, it won’t be affected. However, if you are using a hostname, you will need to use the new one.
Generally speaking, TiDB is deployed using IP addresses, so it doesn’t have any impact.
It won’t have an impact. Nowadays, various components in virtual machines are mostly connected using IP addresses or domain names, and rarely associated with hostnames. However, there will be differences in k8s.
It basically doesn’t affect it, as they are all deployed using IPs.
No, if you’re worried about issues like this, you can test it in the development environment first, and then execute it in the production environment once there are no problems.
Check the parameter file in tiup cluster edit-config tidb-xxx
to see if there is anything about HOSTNAME, usually it is set to IP.
Check the global configuration items:
global
monitored
server_configs
Check the local configuration items:
pd_servers
tidb_servers
tikv_servers
pump_servers
drainer_servers
cdc_servers
monitoring_servers
grafana_servers
alertmanager_servers
Some databases require configuring hostnames and even push DNS, which is really a huge pitfall.