Mongo Replica:是否可以添加一个对选举和可用性没有任何影响的成员?
我有一个包含 3 个成员的副本集,如果 3 个成员中的 1 个出现故障,该副本集将继续运行。现在,我需要向副本添加另一个辅助成员,我希望该成员在所有方面对于副本来说都是可选的。我很好奇priority: 0 + votes: 0 是否能解决问题。
该新的副本成员可能会相当有可能且频繁地宕机,我想以一种方式配置它,仍然允许其他 1 个成员宕机(除了新成员之外)并仍然保持副本集正常工作(即, 4 名成员中有 2 名,但 3 票中有 2 名)。换句话说,我不希望新成员对副本集可用性产生负面影响。
是否可以?
先感谢您!
I have a replica set with 3 members that will continue functioning if 1 of 3 goes down. Now, I need to add another secondary member to a replica, which I want to be optional to the replica in all regards. I'm curious if priority: 0 + votes: 0 will do the trick or not.
That new replica member can go down fairly likely and frequently, and I want to configure it in a way, that will still allow 1 other member to go down (in addition to a new one) and still keep the replica set working (i.e., with 2 out of 4 members, but with 2 out of 3 votes). In other words, I don't want the new member to negatively affect the replica set availability.
Is it possible?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将成员设置为 votes=0、priority=0、hidden=true,您可以随时停止/启动,而无需复制集或应用程序来理解...
Set the member to votes=0,priority=0,hidden=true and you can stop/start any time without replicaSet or applications to understand ...