"stateStr" : "(not reachable/healthy)"
作者:互联网
问题背景
查看复制集状态,节点异常(not reachable),authenticated:false
> rs.status()
"_id" : 5,
"name" : "192.168.5.133:27018",
"health" : 0,
"state" : 6,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"lastHeartbeat" : ISODate("2022-04-09T12:14:34.678Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"authenticated" : false,
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"configVersion" : -1,
"configTerm" : -1
}
解决办法
经查询复制集启动时启用了security.KeyFile,而此Arbiter节点未启用security.KeyFile,取消security.KeyFile注释重启Arbiter节点即可。
标签:false,healthy,reachable,stateStr,ISODate,security,KeyFile,节点 来源: https://www.cnblogs.com/haha029/p/16124830.html