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

创建 Atlas Infinite 或 Atlas Core 集群

本教程将引导您完成创建新 Atlas 集群的步骤。要了解如何修改现有 Atlas Core 集群,请参阅修改 Atlas Core 集群。要了解如何修改现有 Atlas Infinite 集群,请参阅修改 Atlas Infinite 集群。

A cluster on Atlas Infinite is a replica set. A cluster on Atlas Core can be a replica set or a sharded cluster. This tutorial walks you through creating a replica set.

To learn about recommendations for clusters, see Recommendations for Atlas Orgs, Projects, and Clusters in the Atlas Architecture Center. To learn about high availability recommendations, see Recommendations for Atlas High Availability in the Atlas Architecture Center.

要创建集群,您必须对项目拥有 Organization Owner、Project Owner 或 Project Cluster Creator访问权限。

要了解 Atlas 数据库版本之间的差异,请参阅 数据库版本。创建集群时,请考虑以下事项:

以下注意事项适用于 Atlas Infinite 和 Atlas Core:

  • 为了最大限度地降低网络延迟和数据传输成本,并提高整体稳定性和安全性,请尽可能使用相同的云提供商和地区来托管您的应用程序和集群。

  • 每个Atlas项目最多支持 25 个集群。如果您对集群限制有任何疑问或需要帮助,联系支持。

  • 若您的 Atlas 项目包含自定义角色,并且该角色采用了特定 MongoDB 版本中引入的动作,那么在尝试用早期 MongoDB 版本创建集群前,您必须先删除这些角色。

  • 新集群默认使用 TLS 版本 1.3,如果明确设置,则支持 1.2。

    重要:Atlas 不再支持 TLS 1.0或1.1。所有集群都拒绝使用 TLS 1.0 或 1.1 进行连接的尝试。将您的集群的最低 TLS 版本设置为 1.2 或更高版本。

  • When you create a cluster, Atlas creates a network container in the project for the cloud provider to which you deploy the cluster if one does not already exist.

  • 如果启用了备份合规策略,所有新集群和现有集群都会自动启用云备份,并使用项目级别的备份合规策略。Atlas 会扩展任何先前存在的集群级策略,以满足备份合规性策略的最低要求。所有新集群都使用备份合规性策略,除非集群级备份策略的最低要求超出备份合规性策略的最低要求。

  • 建议在生产环境中使用 M30 及更高版本的集群。

  • 您选择的集群类型决定了集群接收新 MongoDB 版本的方式:

    • 对于 Atlas Core 集群,您可以使用 Latest Version With Auto Upgrades,或者选择特定的 MongoDB 主版本来控制升级时间。

    • 对于 Atlas Infinite 集群,Atlas 始终使用 Latest Version With Auto Upgrades。

    • 对于 Free 集群和 Flex 集群,Atlas 会自动升级它们,并将它们保持在特定的 MongoDB 主版本上。

    • 要了解更多信息,请参阅 Atlas 中的 MongoDB 版本。

  • 要在 Atlas 用户界面中创建 Atlas Infinite 集群,请点击 Go to Advanced Configuration 并选择 Atlas Infinite。您还可以使用 Atlas CLI、Atlas Administration API 或 Terraform。

  • 集群创建后,您无法更改数据库版本。因此,若要使用其他版本,请创建一个新集群。

  • Atlas Infinite 集群存在一些公开预览版限制;请参阅公开预览版可用性以获取完整列表。

  • 您可以设置最大存储限制,以限制 Atlas Infinite 集群的逻辑数据大小。如要了解更多信息,请参阅最大存储限制。

  • 要了解 Atlas Infinite 如何托管集群存储,请参阅 管理 Atlas Infinite 集群上的存储。