0 like 0 dislike
asked in MongoDB Discussion Forum by (990 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 (990 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

No related questions found

Welcome to PostgreSQL Database Discussion Forum where you can ask questions and receive answers from other members of the community. Can discuss here Oracle, Postgresql, mariadb , mySQL , AWS , Linux , MSSQL , MongoDB , Greenplum databases related queries ...etc.