我的mongodb版本是3.0.5,系統是Ubuntu14.04,在阿里雲上運作。
我在三個節點上建立replicaSet,在初始的primary節點上rs.add加入其他節點時均回傳
{
"ok" : 0,
"errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: xx.xxx.xxx.xx:xxxxx; the following nodes did not respond affirmatively: yy.yyy.yyy.yy:yyyyy failed with Received heartbeat from member with the same member ID as ourself: 0, zz.zzz.zzz.zzz:zzzzz failed with Received heartbeat from member with the same member ID as ourself: 0",
"code" : 74
}
節點之間的網路可以肯定是連通的,另外兩個節點的mongod也在運行,設定檔中的replSet項目也是相同的,為什麼無法收到回應呢?