Database Reference
In-Depth Information
Removing a member
In order to remove a member from an existing replica set, you can use the following com-
mand:
rs.remove("mongod2.replicaset.com:27017")
To remove a node, you should introduce both the hostname and port number to the remove
method. After executing the command, you should see the result shown in the following
screenshot:
To confirm that the member has been removed successfully, you can simply issue the
rs.status() command again.
Search WWH ::




Custom Search