0 like 0 dislike
119 views
asked in MongoDB Discussion Forum by (1k points)  
Hello All - what is the best way to change replica set name without downtime or minimal downtime. It is the 5 node replica set.

Please log in or register to answer this question.

1 Answer

0 like 0 dislike
answered by (1k points)  
1. Stop the mongod service on all the 5 nodes
2. Start 1 node without any replica set name in the config file and drop local DB and stop the service
3. Change the config file back with the new replica set name in all the 5 nodes
4. Start all the 5 servers with the new config file
5. rs.initiate() node 1 and rs.add all rest 4 nodes

Related questions

...