mongodb增加与移除arbiter节点
一、增加Arbiter节点
增加配置文件mongod1,mongod2,mongod3分别为shard1,shard2,shard3三个set集合的arbiter。
启动mongod实例。
连接Primary.
二、移除Arbiter
注意,最好移除结点时先停掉服务,防止有特殊未知状态出现。
Note:Before running the rs.remove() operation, you must shut down the replica set member that you're removing.
Changed in version 2.2: This procedure is no longer required when using rs.remove(), but it remains good practice.