Reference Guide

59. 複寫狀態
10. mongod 服務,並將次要節點新增至 MongoDB 叢集中的第二及第三個節點:
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)
}
: 連接埠號碼會根據網路中的系統和的系統而有所不同。
11. MongoDB 叢集中新增節點後,透過執行下列的主要與次要節點命令,以檢複寫狀態:
rs.status();
MongoDB 上達到高可用性 61