mongodb 5.0+ 版本,使用remove删除Arbiter节点报错如下
"errmsg":"Reconfig attempted to install a config that would change the implicit default write concern. Use the setDefaultRWConcern command to set a cluster-wide write concern and try the reconfig again.",
FIX:
查看复制集配置信息(2个DB节点,1个Arbiter节点),修改配置
db.adminCommand({"setDefaultRWConcern":1, "defaultWriteConcern": {"w":1}})
再次删除Arbiter节点可以删除
原因暂时不详,回头补充参数说明










网友评论