【发布时间】:2018-08-25 06:03:27
【问题描述】:
我正在尝试部署 MongoDB 副本集。我已将我的 MongoDB 实例作为 First Digitalocen 液滴中副本的主要实例。现在我正在尝试添加另一个托管在 Second Digitalocen droplet 上的 MongoDB 实例,作为副本的辅助。我还在防火墙(ufw)中打开了 27017 端口,允许 IP 地址27017 ALLOW Anywhere 27017 ALLOW 206.189.168.245
但我收到以下错误:
rs0:PRIMARY> rs.add('206.189.168.245:27017')
{
"ok" : 0,
"errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: 159.89.150.245:27017; the following nodes did not respond affirmatively: 206.189.168.245:27017 failed with Couldn't get a connection within the time limit",
"code" : 74,
"codeName" : "NodeNotFound"
}
这里,Digitalocean droplet 版本:Ubuntu 16.04.4 x64 和 MongoDB 版本:v3.4.16
这是什么原因?
【问题讨论】:
标签: mongodb digital-ocean