Mongodb增加、移除Arbiter节点实例
增加Arbiter
增加配置文件mongod1,mongod2,mongod3分别为shard1,shard2,shard3三个set集合的arbiter。
replSet=shard1 replSet=shard2 replSet=shard3
启动mongod实例。
连接Primary.
rs.addArb(“192.168.1.50:10001″) rs.addArb(“192.168.1.50:10002″) rs.addArb(“192.168.1.50:10003″)
移除Arbiter
rs.remove(“192.168.1.50:10001″)
注意:最好移除结点时候先停掉服务,防止有特殊未知状态出现。
Note:Beforerunningthers.remove()operation,youmustshutdownthereplicasetmemberthatyou'reremoving.
Changedinversion2.2:Thisprocedureisnolongerrequiredwhenusingrs.remove(),butitremainsgoodpractice.
热门推荐
3 祝福语简短的微信
10 幼儿祝福语大全简短贺卡
11 感谢教官文案祝福语简短
12 鼠年同事祝福语简短创意
13 元旦祝福语 简短独特群发
14 妈咪跟我生日祝福语简短
15 给儿子新婚祝福语简短
16 伴娘祝福语长文案简短
17 恭喜高考完祝福语简短
18 生日祝福语送老公简短