美文网首页
mongodb replset删除arbiter节点

mongodb replset删除arbiter节点

作者: 毒师 | 来源:发表于2022-06-20 10:12 被阅读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节点可以删除

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

相关文章

网友评论

      本文标题:mongodb replset删除arbiter节点

      本文链接:https://www.haomeiwen.com/subject/ppgsvrtx.html