How to replace arbitr node ?

18 views
Skip to first unread message

Alexandr Zelinskiy

unread,
Dec 13, 2017, 6:12:33 AM12/13/17
to mongodb-user
Good day!
I have a cluster of mongo that looks like in the picture.



Need to replace the server on which the arbitr is located.
Is it sufficient to perform the following sequence

1. Stop mongod on the arbitr node

2. In primary node run command

rs.remove("old-arbitr.example.net:27017")

rs.addArb("new-arbitr.example.net:27017")


Do I need to change the settings on the router or config node?

Auto Generated Inline Image 1

Kevin Adistambha

unread,
Dec 15, 2017, 1:06:18 AM12/15/17
to mongodb-user

Hi

Need to replace the server on which the arbitr is located.

Could you elaborate on the details of your goal? Why can’t you keep the existing hostname and replace the underlying hardware? Your diagram shows two arbiters. Do you need to replace both of them?

If you only need to replace the hardware, then keeping the existing hostname would be the simplest solution, since you don’t need to change any settings in the MongoDB side.

If you have to change the hostname of the arbiters, you could follow the tutorial in Change Hostnames in a Replica Set.

However, if your arbiters are also listed as part of the shards in the output of sh.status(), you would also need to change the corresponding shard settings in the config database. See config.shards for more details.

Please note that this is a major change to your deployment. Please ensure that all procedures are fully tested before performing them on your production instances, and backups are up-to-date.

If you require further help, it’ll be helpful to provide:

  • Your MongoDB version
  • Your current topology (e.g. output of sh.status() and rs.status() of each shard)
  • Your end goal and how you currently plan to achieve it

Best regards
Kevin

Reply all
Reply to author
Forward
0 new messages