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

Microsoft Azure

Atlas 支持在 Microsoft Azure 上部署集群。

Atlas supports the following Azure regions and Availability Zones. While all of the following regions support dedicated clusters (M10+), some regions don't support Free clusters (formerly known as M0) or Flex clusters. The Atlas API uses the corresponding Atlas Region.

注意

Clusters spun up in an Atlas organization created through Azure Native Integration aren't limited to the specific Azure region where the organization is based. Clusters can be deployed in any of the 40+ worldwide Azure regions in which Atlas is supported. The organization region is only required to fit the Azure resource requirements and has no impact on the regions where clusters in the organization are deployed.

重要

我们建议您使用下表中标有星号 () 的区域仅作为多区域集群中的从节点灾难恢复 (DR) 区域,因为这些区域的成本高于表中的其他区域。

此外,未经 Azure 支持批准,这些区域可能无法在 Azure 环境中使用。如果您想利用私有网络选项(例如 vNet 对等互连私有终结点),将集群部署在一个或多个区域,则必须允许您的 Azure 订阅在这些区域中创建资源。要了解更多信息,请联系 Azure 支持

Azure 区域
地点
Atlas 区域
Free 支持
Flex 支持
M10+ 支持
可用区

centralus

Iowa, USA

US_CENTRAL

eastus

弗吉尼亚州(美国东部)

US_EAST

eastus2

Virginia, USA

US_EAST_2

northcentralus

Illinois, USA

US_NORTH_CENTRAL

westus

美国加利福尼亚州

US_WEST

westus2

美国华盛顿州

US_WEST_2

westus3

Arizona, USA

US_WEST_3

westcentralus

Wyoming, USA

US_WEST_CENTRAL

southcentralus

Texas, USA

US_SOUTH_CENTRAL

brazilsouth

巴西圣保罗

BRAZIL_SOUTH

brazilsoutheast

Rio de Janeiro, Brazil

BRAZIL_SOUTHEAST

canadaeast

加拿大魁北克省魁北克市

CANADA_EAST

canadacentral

加拿大安大略省多伦多

CANADA_CENTRAL

chilecentral

Santiago

CHILE_CENTRAL

mexicocentral

墨西哥克雷塔罗州

MEXICO_CENTRAL

Azure 区域
地点
Atlas 区域
Free 支持
Flex 支持
M10+ 支持
可用区

northeurope

爱尔兰

EUROPE_NORTH

westeurope

荷兰

EUROPE_WEST

uksouth

英国英格兰伦敦

UK_SOUTH

ukwest

英国威尔士卡迪夫

UK_WEST

francecentral

法国巴黎

FRANCE_CENTRAL

francesouth

法国马赛

FRANCE_SOUTH

italynorth

意大利米兰

ITALY_NORTH

germanywestcentral

德国法兰克福

GERMANY_WEST_CENTRAL

germanynorth

德国柏林

GERMANY_NORTH

polandcentral

波兰华沙

POLAND_CENTRAL

switzerlandnorth

苏黎世瑞士

SWITZERLAND_NORTH

switzerlandwest

瑞士日内瓦

SWITZERLAND_WEST

norwayeast

挪威奥斯陆

NORWAY_EAST

norwaywest

挪威斯塔万格

NORWAY_WEST

swedencentral

瑞典耶夫勒

SWEDEN_CENTRAL

swedensouth

瑞典斯塔凡斯托普

SWEDEN_SOUTH

spaincentral

西班牙马德里

SPAIN_CENTRAL

Azure 区域
地点
Atlas 区域
Free 支持
Flex 支持
M10+ 支持
可用区

eastasia

中国香港

ASIA_EAST

southeastasia

新加坡

ASIA_SOUTH_EAST

australiacentral

澳大利亚堪培拉

AUSTRALIA_CENTRAL

australiacentral2

澳大利亚堪培拉

AUSTRALIA_CENTRAL_2

australiaeast

澳大利亚新南威尔士州

AUSTRALIA_EAST

australiasoutheast

澳大利亚维多利亚州

AUSTRALIA_SOUTH_EAST

centralindia

浦那(印度中部)

INDIA_CENTRAL

southindia

Chennai, India

INDIA_SOUTH

westindia

印度孟买

INDIA_WEST

indonesiacentral

Jakarta

INDONESIA_CENTRAL

japaneast

Tokyo, Japan

JAPAN_EAST

japanwest

日本大阪

JAPAN_WEST

koreacentral

Seoul, South Korea

KOREA_CENTRAL

koreasouth

韩国釜山

KOREA_SOUTH

malaysiawest

马来西亚

MALAYSIA_WEST

newzealandnorth

新西兰奥克兰

NEW_ZEALAND_NORTH

Azure 区域
地点
Atlas 区域
Free 支持
Flex 支持
M10+ 支持
可用区

southafricanorth

南非约翰内斯堡

SOUTH_AFRICA_NORTH

Azure 区域
地点
Atlas 区域
Free 支持
Flex 支持
M10+ 支持
可用区

uaenorth

Dubai, UAE

UAE_NORTH

uaecentral

阿联酋阿布扎比

UAE_CENTRAL

qatarcentral

Qatar

QATAR_CENTRAL

israelcentral

以色列

ISRAEL_CENTRAL

southafricanorth

南非约翰内斯堡

SOUTH_AFRICA_NORTH

southafricawest

南非开普敦

SOUTH_AFRICA_WEST

Atlas支持以下 Azure 区域中的 NVMe 存储 和 扩展存储/IOPS 。

注意

这些区域中在 11 月1 、2024 之后创建的集群支持扩展存储。随着时间的推移,在此日期之前已存在于这些区域的集群将自动支持扩展存储。要在 11 月 之前创建的集群上启用扩展存储,1 2024更早,联系MongoDB支持部门。

Azure 区域
地点
Atlas 区域
NVMe 支持
扩展存储/IOPS

centralus

Iowa, USA

US_CENTRAL

eastus

弗吉尼亚州(美国东部)

US_EAST

eastus2

Virginia, USA

US_EAST_2

northcentralus

Illinois, USA

US_NORTH_CENTRAL

westus

美国加利福尼亚州

US_WEST

westus2

美国华盛顿州

US_WEST_2

westus3

Arizona, USA

US_WEST_3

westcentralus

Wyoming, USA

US_WEST_CENTRAL

southcentralus

Texas, USA

US_SOUTH_CENTRAL

brazilsouth

巴西圣保罗

BRAZIL_SOUTH

brazilsoutheast

Rio de Janeiro, Brazil

BRAZIL_SOUTHEAST

canadaeast

加拿大魁北克省魁北克市

CANADA_EAST

canadacentral

加拿大安大略省多伦多

CANADA_CENTRAL

chilecentral

Santiago

CHILE_CENTRAL

mexicocentral

墨西哥克雷塔罗州

MEXICO_CENTRAL

Azure 区域
地点
Atlas 区域
NVMe 支持
扩展存储/IOPS

northeurope

爱尔兰

EUROPE_NORTH

westeurope

荷兰

EUROPE_WEST

uksouth

英国英格兰伦敦

UK_SOUTH

ukwest

英国威尔士卡迪夫

UK_WEST

francecentral

法国巴黎

FRANCE_CENTRAL

francesouth

法国马赛

FRANCE_SOUTH

italynorth

意大利米兰

ITALY_NORTH

germanywestcentral

德国法兰克福

GERMANY_WEST_CENTRAL

germanynorth

德国柏林

GERMANY_NORTH

polandcentral

波兰华沙

POLAND_CENTRAL

switzerlandnorth

苏黎世瑞士

SWITZERLAND_NORTH

switzerlandwest

瑞士日内瓦

SWITZERLAND_WEST

norwayeast

挪威奥斯陆

NORWAY_EAST

norwaywest

挪威斯塔万格

NORWAY_WEST

swedencentral

瑞典耶夫勒

SWEDEN_CENTRAL

swedensouth

瑞典斯塔凡斯托普

SWEDEN_SOUTH

spaincentral

西班牙马德里

SPAIN_CENTRAL

Azure 区域
地点
Atlas 区域
NVMe 支持
扩展存储/IOPS

eastasia

中国香港

ASIA_EAST

southeastasia

新加坡

ASIA_SOUTH_EAST

australiacentral

澳大利亚堪培拉

AUSTRALIA_CENTRAL

australiacentral2

澳大利亚堪培拉

AUSTRALIA_CENTRAL_2

australiaeast

澳大利亚新南威尔士州

AUSTRALIA_EAST

australiasoutheast

澳大利亚维多利亚州

AUSTRALIA_SOUTH_EAST

centralindia

浦那(印度中部)

INDIA_CENTRAL

southindia

Chennai, India

INDIA_SOUTH

westindia

印度孟买

INDIA_WEST

indonesiacentral

Jakarta

INDONESIA_CENTRAL

japaneast

Tokyo, Japan

JAPAN_EAST

japanwest

日本大阪

JAPAN_WEST

koreacentral

Seoul, South Korea

KOREA_CENTRAL

koreasouth

韩国釜山

KOREA_SOUTH

malaysiawest

马来西亚

MALAYSIA_WEST

newzealandnorth

新西兰奥克兰

NEW_ZEALAND_NORTH

Azure 区域
地点
Atlas 区域
NVMe 支持
扩展存储/IOPS

uaenorth

Dubai, UAE

UAE_NORTH

uaecentral

阿联酋阿布扎比

UAE_CENTRAL

qatarcentral

Qatar

QATAR_CENTRAL

israelcentral

以色列

ISRAEL_CENTRAL

southafricanorth

南非约翰内斯堡

SOUTH_AFRICA_NORTH

southafricawest

南非开普敦

SOUTH_AFRICA_WEST

每个 Atlas 集群层均附带一组默认资源。 Atlas提供以下资源配置选项:

自定义存储大小

服务器根卷的大小。部署到Azure上的Atlas集群使用高级固态硬盘 [1]

注意

RAM 可用性

由于内核保留的内存, 每个集群层可用的实际 RAM 数量可能略低于所述内存数量。

注意

截至 10 月 18、2021,部署到Azure 的以下Atlas集群提供 16、000 IOPS(高于 7、500)和 500 MB/秒吞吐量(高于 250 MB/秒):

  • 具有 4 TB 存储卷的新集群。

  • 可扩展到 4 TB 存储卷的现有集群。

以下是可用的集群层:

Cluster Tiers
存储范围
默认存储
默认 RAM

M0

.5 GB

.5 GB

共享

Flex

5 GB

5 GB

Flex

M10

8 GB 至 128 GB

8 GB

2 GB

M20

8 GB 至 256 GB

16 GB

4 GB

M30

8 GB 至 512 GB

32 GB

8 GB

M40

8 GB 至 1 TB

64 GB

16 GB

M40 低 CPU

8 GB 至 1 TB

128 GB

16 GB

M50

8 GB 至 4 TB

128 GB

32 GB

M50 低 CPU

8 GB 至 4 TB

128 GB

32 GB

M60

8 GB 至 4 TB

128 GB

64 GB

M60_NVME

1600 GB

1600 GB

64 GB

M60 低 CPU

8 GB 至 4 TB

128 GB

64 GB

M80

8 GB 至 4 TB

256 GB

128 GB

M80 低 CPU

8 GB 至 4 TB

256 GB

128 GB

M80_NVME

1600 GB

1600 GB

128 GB

M200

8 GB 至 4 TB

256 GB

256 GB

R200

8 GB 至 4 TB

256 GB

256 GB

M200_NVME

3100 GB

3100 GB

256 GB

R300

8 GB 至 4 TB

512 GB

384 GB

M300_NVME

3,600 GB

3,600 GB

384 GB

R400

8 GB 至 4 TB

512 GB

432 GB

M400_NVME

4000 GB

4000 GB

512 GB

M600_NVME

4000 GB

4000 GB

640 GB

可以将此层用于多云集群。

在以下地区不可用:

  • germanywestcentral

  • switzerlandnorth

  • switzerlandwest

注意

集群层级和 API 命名约定

For purposes of management with the Atlas Administration API, cluster tier names that are prepended with R instead of an M (R40 for example) run a low-CPU version of the cluster. When creating or modifying a cluster with the API, be sure to specify your desired cluster class by name with the replicationSpecs[n].regionConfigs[m].electableSpecs.instanceSize attribute.

重要

多云低 CPU 集群

只要集群层可用,低 CPU集群层(M40 低 CPU、M50 低 CPU、M60 低 CPU 等)就可以在多云集群配置中使用对于集群使用的所有区域。

工作负载通常需要低于 2TB

NVMe 集群不支持多云集群配置

Atlas 自动配置以下资源,且不允许用户修改:

已加密存储卷
Azure 存储卷始终处于加密状态

Azure 在每个区域维护多个数据中心。Azure 将数据中心划分为可用区,这些可用区是区域内的独立位置。在不同的物理位置维护数据中心有助于 Azure 承受本地故障。

Azure 可用区并非在所有地区都可用。要了解哪些 Azure 地区维护可用性区域,请参阅 Azure 地区表。在尚无可用性区域的地区,Azure 使用故障域确保容错能力。

Atlas 会在您将专用集群部署到支持 Azure 可用性区域的地区时,自动使用 Azure 可用性区域。Atlas 会将集群节点分割到不同的可用性区域。例如,三节点副本集群会在每个区域上部署一个节点。托管一个节点的 Azure 数据中心出现本地故障不会影响托管其他节点的数据中心的操作。

注意

具有可用区的区域可为 9 月 12 日 (2019) 之后部署的专用集群提供更长的正常运行时间。对于 9 月 13 日 (2019) 之前部署的集群,如果所在地区目前有可用区,则这些集群不自动在可用区之间分割。要了解有关可用区的更多信息,请参阅 Azure文档

每个 Azure 区域均包括一定数量的容错域以实现容错性。容错域由一组共享公用电源和网络交换机的虚拟机组成。如果您将集群部署到不支持可用性区域的地区,Atlas 会将节点分布到不同的容错域。

Atlas使用可用性集跨故障域部署集群。对于至少有三个故障域(3 FD) 的区域, Atlas跨三个故障域部署集群。对于只有两个故障域 (2 FD) 的区域, Atlas跨两个故障域部署集群。

Atlas“添加新集群”表单将支持3FD 集群的区域标记为 Recommended,因为它们提供更高的可用性。

地区中故障域的数量对 Atlas可以部署 MongoDB 节点的数量没有影响。 MongoDB Atlas 集群总是由至少有三个 MongoDB 节点的副本集组成。

有关 Azure 容错域和可用性集的一般信息,请参阅可用性集概述

如果所选的 Azure 区域至少有三个故障域,则 Atlas 集群将拆分到三个容错域。例如,三节点副本集集群会在每个区域上部署一个节点。

在 3 个故障域 Azure 地区部署的 3 节点副本集。
点击放大

2FD 集群相比,3FD 集群具有更高的可用性。然而,并非所有地区都支持3FD 集群。

如果所选的 Azure 地区有两个故障域,则 Atlas 集群将拆分到两个容错域。例如,三节点副本集集群会将两个节点部署到一个区域,将其余节点部署到另一区域。

在 2 个故障域 Azure 地区部署的 3 节点副本集。
点击放大

在区域丢失的事件,2FD 集群比 3FD 集群更有可能失去可用性。但是,在延迟或位置为优先级的情况下,支持 2FD 集群的地区可能是首选。

[1] 有关 Azure 存储选项的详细文档,请参阅虚拟机高性能高级存储和托管磁盘

Adaptive capacity is a feature of Azure instances that Atlas uses to help keep your cluster available when an Azure region is temporarily out of capacity for the instance type that your cluster uses. Atlas enables adaptive capacity by default for clusters on Azure that have at least one node.

注意

AZURE capacity reservations are not the same as Atlas's use of Azure adaptive capacity. Atlas respects Azure capacity reservations and uses the logic described in this section.

When an Azure region temporarily runs out of capacity for the instance type that your cluster uses, you might be unable to scale the cluster, and Atlas might be unable to replace a node during automatic recovery. To keep your cluster available, Atlas provisions an alternate instance type with available capacity and moves the cluster to it temporarily.

When Atlas detects that the Azure instance type your cluster uses is out of capacity, Atlas provisions an alternate instance type with available capacity and moves your cluster to it temporarily so the cluster can continue running. Atlas selects the alternate instance type from the same cluster class and doesn't move your data.

Atlas 仅在您更改集群的计算资源时使用自适应容量,例如:

在添加节点或分片时,Atlas 不使用自适应容量。

替代实例类型可使集群可用,而且更改不会导致停机。替代实例类型的性能可能低于原始实例类型,因此,在 Atlas 将集群返回原始实例类型之前,应用程序可能会出现 CPU 使用率较高、延迟增加或超时等情况。

当原始实例类型返回到可用容量时,Atlas 会自动将集群返回到该实例类型。如果定义了维护窗口,Atlas 将遵循该窗口。

On Azure, Atlas uses adaptive capacity for dedicated clusters M30 and larger that have at least one node. Adaptive capacity is available for these clusters in all Azure regions listed in Supported Regions. Atlas doesn't use adaptive capacity for M10 clusters, Free clusters, or Flex clusters.

For M20 clusters, adaptive capacity is available only in Azure regions that offer alternative instance families as fallback. If the M20 instance type itself runs out of capacity, Atlas cannot fall back to an alternate instance type.

如果您选择的 M10M20 实例类型没有可用容量,Atlas 将在 Atlas 用户界面中通知您。要部署集群,请执行以下操作之一:

  • Select a different Azure region. To review available Azure regions, see Supported Regions.

  • 选择较大的集群层级(M30 或更大)。

  • 等待容量返回。

容量短缺是临时的。当云提供商在该区域恢复容量时,实例类型将再次可用。

Atlas 不会对使用 NVMe 存储的集群使用自适应容量,因为 Atlas 会将其存储与实例类型绑定。

当 Atlas 因容量限制而预配替代实例类型时,它不会改变集群的价格。

We recommend that you enable adaptive capacity to maintain the availability of your cluster during Azure capacity shortages. Atlas enables adaptive capacity by default. You can opt out of using adaptive capacity for an individual cluster. When you opt out, Atlas keeps your cluster on its original instance type, and a capacity shortage might prevent you from scaling the cluster.

要退出 Atlas 自适应容量变更,请参阅 Azure 集群的自适应容量。

Atlas 支持在 Azure 上为 M10 及更高版本的集群部署单独的搜索节点

Atlas doesn't support Search Nodes in the following Azure regions:

地区名称
Azure 区域

AUSTRALIA_CENTRAL_2

australiacentral2

AUSTRALIA_SOUTH_EAST

australiasoutheast

BRAZIL_SOUTHEAST

brazilsoutheast

CANADA_EAST

canadaeast

GERMANY_NORTH

germanynorth

INDIA_WEST

westindia

INDIA_SOUTH

southindia

ITALY_NORTH(仅适用于低 CPU 搜索节点)

italynorth

JAPAN_WEST

japanwest

KOREA_SOUTH

koreasouth

NORWAY_WEST

norwaywest

SOUTH_AFRICA_WEST

southafricawest

SPAIN_CENTRAL

spaincentral

SWEDEN_SOUTH

swedensouth

SWITZERLAND_WEST

switzerlandwest

UAE_CENTRAL

uaecentral

UK_WEST

ukwest

US_WEST_CENTRAL

westcentralus

US_WEST

westus

Atlas 为部署在 Azure 上的搜索节点提供不同的搜索层级

下表列出了各类硬件(低 CPU 和高 CPU)可用的搜索层,默认RAM和存储以千兆字节 (GiB) 为单位:

实例大小
实例详细信息

S40

  • Default RAM: 16 GiB

  • 默认存储:75 GiB

  • vCPU: 2

S50

  • Default RAM: 32 GiB

  • 默认存储:150 GiB

  • vCPU: 4

S60

  • Default RAM: 64 GiB

  • 默认存储:300 GiB

  • vCPU: 8

S80

  • Default RAM: 128 GiB

  • 默认存储:600 GiB

  • vCPU: 16

S90

  • Default RAM: 256 GiB

  • 默认存储:1200 GiB

  • vCPU: 32

S100

  • Default RAM: 384 GiB

  • 默认存储:1800 GiB

  • vCPU: 48

S110

  • Default RAM: 512 GiB

  • 默认存储:2400 GiB

  • vCPU: 64

S130

  • Default RAM: 672 GiB

  • 默认存储:3600 GiB

  • vCPU: 96

S135

  • Default RAM: 672 GiB

  • 默认存储:3800 GiB

  • vCPU: 104

实例大小
实例详细信息

S10

  • Default RAM: 4 GB

  • 默认存储:64 GiB

  • vCPU: 2

S20

  • Default RAM: 4 GiB

  • 默认存储:75 GiB

  • vCPU: 2

S30

  • Default RAM: 8 GiB

  • 默认存储:150 GiB

  • vCPU: 4

S40

  • Default RAM: 16 GiB

  • 默认存储:300 GiB

  • vCPU: 8

S50

  • Default RAM: 32 GiB

  • 默认存储:600 GiB

  • vCPU: 16

S60

  • Default RAM: 64 GiB

  • 默认存储:1200 GiB

  • vCPU: 32

S70

  • Default RAM: 96 GiB

  • 默认存储:1800 GiB

  • vCPU: 48

S80

  • Default RAM: 128 GiB

  • 默认存储:2400 GiB

  • vCPU: 64

重要

如需请求未列出的区域,请将您的反馈添加到MongoDB 反馈门户。您的反馈有助于优先规划未来扩展 Atlas Stream Processing 的覆盖范围。

Atlas 支持在以下 Azure 区域部署 Stream Processing 工作区

Azure 区域
地点
Atlas 区域

eastus

Virginia, USA

US_EAST_1

eastus2

Virginia, USA

US_EAST_2

westus

美国加利福尼亚州

US_WEST

brazilsouth

巴西圣保罗

BRAZIL_SOUTH

Azure 区域
地点
Atlas 区域

australiaeast

澳大利亚新南威尔士州

AUSTRALIA_EAST

eastasia

中国香港

ASIA_EAST

southeastasia

新加坡

ASIA_SOUTH_EAST

Azure 区域
地点
Atlas 区域

northeurope

爱尔兰

EUROPE_NORTH

westeurope

荷兰

EUROPE_WEST

除了全球区域支持以外,以下产品集成使得在 Azure 上运行的应用程序(如 Azure 虚拟机、Azure Functions 和 Azure 容器实例)能够轻松安全地使用 Atlas 实例。

有关如何最有效地将 Azure 与 Atlas 结合使用的详细信息,请查看以下最佳实践、指南和案例研究: