How to convert a MongoDB replica set to a stand alone server
Remove all secondary hosts from replica set (rs.remove(‘host:port’)), restart the mongo deamon without replSet parameter (editing /etc/mongo.conf) and the secondary hosts starts in standalone mode again. The Primary host is tricky one, because you can’t remove it from the replica set with rs.remove. Once you have only the primary node in the replica set, you … Read more