Users Guide

Figure 59. Replication status
10. 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")
MongoDB Enterprise wms20:PRIMARY> rs.add("10.150.132.36:27017")
{
"ok" : 1,
"$clusterTime" : {
"clusterTime" : Timestamp(1579600528, 1),
"signature" : {
"hash" : BinData(0,"8N3uoZ5khebgbY+PsFxJZvMaI1g="),
"keyId" : NumberLong("6784332217662308354")
}
},
"operationTime" : Timestamp(1579600528, 1)
}
NOTE: The port numbers will differ based on the systems at your network and systems.
11. 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();
Achieve high availability on MongoDB
63