V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐工具
RoboMongo
推荐书目
50 Tips and Tricks for MongoDB Developers
Related Blogs
Snail in a Turtleneck
chchen
V2EX  ›  MongoDB

mongodb 副本集两地架构机房搬迁问题

  •  
  •   chchen · Nov 12, 2020 · 3283 views
    This topic created in 1991 days ago, the information mentioned may be changed or developed.
    我们现在有一套副本集的 mongodb,是在两地的机房,由于资源有限,
    A 地有 1 个 primary 和 1 个 secondary,
    B 地有 2 个 secondary 和 1 个 arbiter,

    以前从来没考虑过两地分布似乎不管怎样都不算是高可用,因为必然有一边是少数节点。
    现在 B 机房计划性搬迁,就面临这个问题,B 地直接下电,A 地 2/5 节点,都会变成 slave,影响业务。我计划先在 A 地 add 一个 Arbiter2,然后 remove 掉 B 地的 arbiter,这样 B 地下电是不是就完全没影响了。

    另外想请问下两地部署的情况副本集有什么最佳结构吗?
    感谢。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   827 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 21:11 · PVG 05:11 · LAX 14:11 · JFK 17:11
    ♥ Do have faith in what you're doing.