Reference Guide
Figure 29. Replication status
8 Start mongod service and add the secondary nodes to the second and third nodes in the MongoDB cluster:
rs.add("IPAddress2:27017")
rs.add("IPAddress3:27017")
NOTE
: The port numbers will dier based on the systems at your network and systems.
9 After you add the nodes in the MongoDB cluster, check the replication status by running the following commands for the primary and
secondary nodes:
rs.status();
30
Achieve high availability on MongoDB