Consider, I have 4 replicate sets and the config is as follows:
{
\"_id\": \"rs_0\",
\"version\": 5,
\"members\" : [
{\"_id\": 1, \"host\": \"127.0.0.1:
The MongoDB Documentation suggests the following to perform maintenance on a replica set member, which brings the the replica set member into standalone mode for further operations. With little modification it can be made standalone:
sh.startBalancer(timeout, interval)db.adminCommand( { removeShard: "mongodb0" } )rs.stepDown(300)db.shutdownServer()rs.remove("host:port")After this, the node in concern should be up and running in standalone mode.