对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

在区域中断期间重新配置副本集

重要

The feature described on this page is not currently supported on Atlas Infinite clusters during public preview. For the features supported in public preview, see Public Preview Availability.

During a regional outage, your cluster might not have a primary node if the regional outage affects a majority of the cluster's electable nodes. You can use the Atlas UI to restore your Atlas multi-region cluster by reconfiguring your cluster.

如果在服务中断期间重新配置集群,则集群可能会在以下情况下丢失数据:

  • 如果您的 MongoDB 进程未将写入操作复制到在任何集群中重新配置后成为主节点 (primary node in the replica set) 的节点。当不可用节点再次可用时,您的副本集将回滚这些写入。要学习更多信息,请参阅 Atlas 中故障转移期间的回滚。

  • In sharded clusters, if your MongoDB process didn't replicate chunk migrations. The data inconsistency might cause orphaned chunks.

注意

Force reconfiguring is not supported for multi-shard sharded clusters or a 1-shard cluster with a dedicated config server. If an outage takes a majority of your cluster's electable nodes offline, restore your cluster from a backup. We recommend using 5-Node, 3-Region Architecture for high availability and data loss protection.

您的集群必须在一个或多个地区中出现节点完全服务中断的情况,而另一地区中至少有一个可选举节点。要了解如何模拟多区域集群的服务中断,请参阅模拟服务中断。

如需有关导致服务中断的其他原因的帮助,请联系支持。

要从服务中断中恢复 Atlas 多区域集群,您必须手动重新配置副本集:

1
  1. 如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。

  2. 如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。

  3. 在侧边栏中,单击 Database 标题下的 Clusters。

会显示集群页面。

2
3
4

在Electable nodes for high availability下,您可以将新节点添加到:

  • 现有地区,方法是编辑Nodes列中的节点数

  • 一个新区域,方法是单击 + Add a provider/region

提示

我们强烈建议不要向受服务中断影响的区域添加节点。

5

查看对集群配置和定价的更改。

如果您要将可选举节点添加到未受服务中断影响的新 AWS 区域,则可以将 Enable Faster Cross-Region Atlas Initial Syncs for AWS Clusters 切换为 ON 以加快 AWS 节点之间的跨区域数据复制,但会产生额外费用。仅在将节点添加到没有主节点的 Amazon Web Services 区域时,才会显示此选项,并且您尚未在集群设置中启用此选项。要了解有关此选项的更多信息,请参阅 为 Atlas Core AWS 集群启用更快的跨区域初始同步。

6
给本页内容打分

在此页面上