mongodb replset删除arbiter节点

2022-06-20  本文已影响0人  毒师

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节点可以删除

原因暂时不详,回头补充参数说明

上一篇 下一篇

猜你喜欢

热点阅读