下架主节点:
db.adminCommand({replSetStepDown : 1, force : true})
删除节点:
rs.remove("IP:PORT")
新增节点:
rs.add({_id: ***, host:‘IP:PORT‘,"key":value})
标签:gpo set mon value and port *** log tst
下架主节点:
db.adminCommand({replSetStepDown : 1, force : true})
删除节点:
rs.remove("IP:PORT")
新增节点:
rs.add({_id: ***, host:‘IP:PORT‘,"key":value})
标签:gpo set mon value and port *** log tst
原文地址:https://www.cnblogs.com/zhangtianyuan/p/8664203.html