本教程将引导您完成创建新 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访问权限。
Considerations
要了解 Atlas 数据库版本之间的差异,请参阅 数据库版本。创建集群时,请考虑以下事项:
适用于两个版本的注意事项
以下注意事项适用于 Atlas Infinite 和 Atlas Core:
为了最大限度地降低网络延迟和数据传输成本,并提高整体稳定性和安全性,请尽可能使用相同的云提供商和地区来托管您的应用程序和集群。
若您的 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.
建议在生产环境中使用
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 Infinite 集群的注意事项
要在 Atlas 用户界面中创建 Atlas Infinite 集群,请点击 Go to Advanced Configuration 并选择 Atlas Infinite。您还可以使用 Atlas CLI、Atlas Administration API 或 Terraform。
集群创建后,您无法更改数据库版本。因此,若要使用其他版本,请创建一个新集群。
Atlas Infinite 集群存在一些公开预览版限制;请参阅公开预览版可用性以获取完整列表。
您可以设置最大存储限制,以限制 Atlas Infinite 集群的逻辑数据大小。如要了解更多信息,请参阅最大存储限制。
要了解 Atlas Infinite 如何托管集群存储,请参阅 管理 Atlas Infinite 集群上的存储。
仅针对 Atlas Core 集群的注意事项
多区域和多云集群受跨区域节点限制。要了解更多信息,请参阅 配置高可用性和工作负载隔离性。
创建集群时,集群层自动伸缩在 Atlas 用户界面中默认启用,在 Atlas Administration API 中默认禁用。要了解更多,请参阅 Atlas 集群的自动伸缩。
AI 集群助手可以在您创建集群时帮助您进行配置。要了解更多信息,请参阅 AI 集群助手。