现象
在给一套5个节点的mongo 3.0副本集升级到mongo 3.2,采用的方案是将3.2的节点作为Secondary先挂到原3.0的Primary,结果报错如下
PRIMARY> rs.add("10.9.128.170:27017")
{
"ok" : 0,
"errmsg" : "Replica set configuration contains 8 voting members, but must be at least 1 and no more than 7",
"code" : 103
}
故障原因
看报的错原因很明显,是投票节点数量超过了mongodb限制,翻看了下官方文档,发现这么一段话
Because a replica set can have up to