Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.9k views
in Technique[技术] by (71.8m points)

mongodb副本集两地架构高可用问题

我们现在有一套副本集的mongodb,是在两地的机房,由于资源有限,
A地有1个primary和1个secondary,
B地有2个secondary和1个arbiter,
以前从来没考虑过两地分布似乎不管怎样都不算是高可用,因为必然有一边是少数节点。
现在B机房计划性搬迁,就面临这个问题,B地直接下电,A地2/5节点,都会变成slave,影响业务。我计划先在A地add一个Arbiter2,然后remove掉B地的arbiter,这样B地下电是不是就完全没影响了。
另外想请问下两地部署的情况副本集有什么最佳结构吗?
感谢。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...