0
点赞
收藏
分享

微信扫一扫

mongodb添加仲裁节点无响应

哈哈我是你爹呀 2022-03-12 阅读 129

执行

rs.addArb("ip:port")

添加仲裁节点一直无响应,很长时间后返回错误信息

“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.”

解决办法 在 主节点 设置

db.adminCommand({
  "setDefaultRWConcern" : 1,
  "defaultWriteConcern" : {
    "w" : 2
  }
})
举报

相关推荐

0 条评论