How to update pd member peer url of running cluster #25050
Labels
type/question
The issue belongs to a question.
type/stale
This issue has not been updated for a long time.
Etcd has a command
etcdctl member update <member_id> --peer-urls=<new_peer_url>
to cover a case that a etcd member is restarted and it's IP address has been changed.I have a 3 node pd cluster as follows:
Now I shutdown pd0, I keep all volumes persistent and replace pd0 with a new pd4 as follows:
After pd4 has been started, it joined to the cluster successfully and every is seem worked. But when I do
/pd-ctl member
on a node, it gives me:And you see, the pd4 peer url is still remain "http://pd0:2380" which is of the old pd0. How can I update that peer url to reflect a new address? In reality, I use Docker Swarm and I use IP address for peer urls and every time the container restarted, I have to update the peer urls config to a new IP address.
The text was updated successfully, but these errors were encountered: