gpt4 book ai didi

Mongodb 副本集状态显示 "RECOVERING"

转载 作者:行者123 更新时间:2023-12-02 05:20:10 28 4
gpt4 key购买 nike

我已经在 3 个 mongo 服务器上设置了副本集并导入了 5 GB 数据。现在辅助服务器的状态显示“RECOVERING”。您能否让我知道“RECOVERING”的含义以及如何解决此问题。

状态如下

rs.status()
{
"set" : "kutendarep",
"date" : ISODate("2013-01-15T05:04:18Z"),
"myState" : 3,
"members" : [
{
"_id" : 0,
"name" : "10.1.4.138:27017",
"health" : 1,
"state" : 3,
"stateStr" : "RECOVERING",
"uptime" : 86295,
"optime" : Timestamp(1357901076000, 4),
"optimeDate" : ISODate("2013-01-11T10:44:36Z"),
"errmsg" : "still syncing, not yet to minValid optime 50f04941:2",
"self" : true
},
{
"_id" : 1,
"name" : "10.1.4.21:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 86293,
"optime" : Timestamp(1358160135000, 18058),
"optimeDate" : ISODate("2013-01-14T10:42:15Z"),
"lastHeartbeat" : ISODate("2013-01-15T05:04:18Z"),
"pingMs" : 0
},
{
"_id" : 2,
"name" : "10.1.4.88:27017",
"health" : 1,
"state" : 3,
"stateStr" : "RECOVERING",
"uptime" : 86291,
"optime" : Timestamp(1357900674000, 10),
"optimeDate" : ISODate("2013-01-11T10:37:54Z"),
"lastHeartbeat" : ISODate("2013-01-15T05:04:16Z"),
"pingMs" : 0,
"errmsg" : "still syncing, not yet to minValid optime 50f04941:2"
}
],
"ok" : 1

最佳答案

“RECOVERING”副本集节点上的消息意味着这些节点仍在执行初始同步。这些节点在转换到辅助状态之前不可读取。

初始同步有几个步骤。

有关副本集同步过程的更多信息,请参阅此处: https://www.mongodb.com/docs/manual/core/replica-set-sync/

关于Mongodb 副本集状态显示 "RECOVERING",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14332010/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com