pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37.11k stars 5.83k forks source link

how to change IP address for tidb cluster #9056

Closed shenlijungg closed 5 years ago

shenlijungg commented 5 years ago

Question

目前集群已搭建 5tidb,6 tidv,3pd,3pump,1 drainer,目前有数据已有。 目前集群部署在eth0 10.xxx.xxx.xxx 地址 想切换的eth2 172.xxx.xxx.xxx 地址 目前测试环境失败,PD, ETCD 是否需要重新部署,pd 的data.pd 是否需要复制到新节点。

tennix commented 5 years ago

/cc @tennix @weekface

XuHuaiyu commented 5 years ago

@shenlijungg Thanks for your feedback. But sorry for that, we do not support this for now.

nolouch commented 5 years ago

@shenlijungg Or you can test with this way:

  1. use pd-recover to rebuild the PD cluster.
  2. modify the PD address in other component configuration file.
shenlijungg commented 5 years ago

@XuHuaiyu @nolouch thanks!