下架主節點:
db.adminCommand({replSetStepDown : 1, force : true})
刪除節點:
rs.remove("IP:PORT")
新增節點:
rs.add({_id: ***, host:'IP:PORT',"key":value})
下架主節點:
db.adminCommand({replSetStepDown : 1, force : true})
刪除節點:
rs.remove("IP:PORT")
新增節點:
rs.add({_id: ***, host:'IP:PORT',"key":value})