下架主节点:
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})