How do I reconfigure MongoDB replication?

Problem How do I reconfigure MongoDB replication? Solution Load at the current configuration: appdata:SECONDARY> cfg = rs.conf() { “_id” : “appdata”, “version” : 3, “members” : [ { “_id” : 0, “host” : “appdata1.old.company.com:27017” }, { “_id” : 1, “host” : “appdata2.old.company.com:27017” }, { “_id” : 2, “host” : “appdata3.old.company.com:27017” } ] } appdata:SECONDARY> Change …

Continue reading ‘How do I reconfigure MongoDB replication?’ »