mongodb add new member to replica set code example
Example: add members to replica set mongodb
rs.add( { host: "mongodb3.example.net:27017", priority: 0, votes: 0 } )
rs.add( { host: "mongodb3.example.net:27017", priority: 0, votes: 0 } )