I have a mongodb replica set and want to move it to a single server setup
Is it just as simple as doing a rs.remove()
to the other 2 nodes?
mongodb
I have a mongodb replica set and want to move it to a single server setup
Is it just as simple as doing a rs.remove()
to the other 2 nodes?
Best Answer
On the current primary node of the replica set, you may issue the
rs.remove()
for those nodes, and thereby stopping replication attempts to them.You will probably have to shut down the server that you want to run in single mode, and start it up again without the
--replSet <name>
option (or whatever it might be set to in your config file), as this will start the server in single mode, and not try to replicate to any other nodes.