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

管理部署

On the Data Sources page, an Atlas Project Owner can:

要托管数据源设置,请参阅托管数据源。

注意

Charts 默认会连接到项目中的所有部署和数据源。

您可以将部署连接到 Charts,以访问 Charts 中部署内的collection的数据。

要将部署连接到 Charts:

1

单击侧边栏中Settings标题下的Data sources 。

The Data Sources page displays.

2

MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:

选择部署后,将显示以下信息:

字段
说明

Deployment Name

标识 Atlas 中的部署的可读标签。

Deployment Connection Status

指示您是否将部署连接到 Atlas Charts 的标签。

Type

将部署标识为副本集或联合数据库实例的标签。

Status

指示部署当前操作状况的标签。

Version

指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。

Region

指示 MongoDB 提供部署的云提供商和区域的标签。

Tier

指示部署的 Atlas 集群层的标签。

3

如果部署连接状态为Connected ,则部署已连接到 Charts。 Data Access部分显示所选 Atlas 部署中的所有collection。

如果部署连接状态为Disconnected :

  1. 单击连接图标位于部署连接状态旁边。

  2. 单击出现的模态窗口中的Reconnect 。

部署已连接, Data Access部分显示所选 Atlas 部署的所有数据库。

断开部署连接以断开部署中所有数据源与 Charts 的连接。

If you disconnect a deployment, you can reconnect it later to resume rendering charts that use the deployment's data sources.

要断开部署,请执行以下操作:

1

单击侧边栏中Settings标题下的Data sources 。

The Data Sources page displays.

2

MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:

选择部署后,将显示以下信息:

字段
说明

Deployment Name

标识 Atlas 中的部署的可读标签。

Deployment Connection Status

指示您是否将部署连接到 Atlas Charts 的标签。

Type

将部署标识为副本集或联合数据库实例的标签。

Status

指示部署当前操作状况的标签。

Version

指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。

Region

指示 MongoDB 提供部署的云提供商和区域的标签。

Tier

指示部署的 Atlas 集群层的标签。

3

如果部署连接状态为Disconnected ,则部署已与 Charts 断开连接。

如果部署连接状态为Connected :

  1. 单击断开连接图标位于部署连接状态旁边。 出现Disconnect Deployment模态窗口。

  2. 单击Check for connected charts ,了解是否有Atlas Charts使用部署的collection作为数据源。

  3. 单击 Disconnect(连接)。

部署与 Charts 断开连接。

要在 Charts 中托管部署,请执行以下操作:

1

单击侧边栏中Settings标题下的Data sources 。

The Data Sources page displays.

2

MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:

选择部署后,将显示以下信息:

字段
说明

Deployment Name

标识 Atlas 中的部署的可读标签。

Deployment Connection Status

指示您是否将部署连接到 Atlas Charts 的标签。

Type

将部署标识为副本集或联合数据库实例的标签。

Status

指示部署当前操作状况的标签。

Version

指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。

Region

指示 MongoDB 提供部署的云提供商和区域的标签。

Tier

指示部署的 Atlas 集群层的标签。

3

如果部署连接状态为Connected ,则部署已连接到 Charts。 Data Access部分显示所选 Atlas 部署中的所有collection。

如果部署连接状态为Disconnected :

  1. 单击连接图标位于部署连接状态旁边。

  2. 单击出现的模态窗口中的Reconnect 。

部署已连接, Data Access部分显示所选 Atlas 部署的所有数据库。

您可以托管以下部署设置。

组织范围的共享可授予组织内的用户(包括非项目成员的用户) 查看部署数据的权限,这些数据用于与组织共享的仪表盘。

您可以为整个部署或特定数据源启用组织范围的共享。

  • 检查您是否可以访问包含 Atlas 项目的组织的 Atlas 用户界面。

    If your organization's owners enable IP access list for the Atlas UI for an organization, this restricts access to the Atlas UI only to those users whose IP addresses are included in the organization's IP access list. If you don't have access to an organization, Atlas Charts displays a banner at the top of the page notifying you of the restriction. Contact your organization's owners so that they can include your IP address in the access list for the Atlas UI for this organization. This restriction doesn't apply to embedded charts applications and to the public dashboard.

  • 如果您为部署启用组织范围的共享,它将应用于所有现有数据源以及您将来添加到该部署中的任何新数据源。

要为部署启用组织范围的共享,请执行以下操作:

1

单击侧边栏中Settings标题下的Data sources 。

The Data Sources page displays.

2

MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:

选择部署后,将显示以下信息:

字段
说明

Deployment Name

标识 Atlas 中的部署的可读标签。

Deployment Connection Status

指示您是否将部署连接到 Atlas Charts 的标签。

Type

将部署标识为副本集或联合数据库实例的标签。

Status

指示部署当前操作状况的标签。

Version

指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。

Region

指示 MongoDB 提供部署的云提供商和区域的标签。

Tier

指示部署的 Atlas 集群层的标签。

3

在Organization 部分的Data Access 小节中,将All users in the organization can view data in this data source 切换为ON 。

每个部署都有一个读取偏好(read preference),它决定了数据源从中读取数据的副本集节点。

By default, a newly-added Atlas cluster has a read preference of Secondary, which means that it reads from a secondary node within the Atlas cluster. You can change the read preference of a cluster using the Read preference dropdown.

You can't change the read preference of a federated database instance. Federated database instances have a read preference of Nearest by default, which means that they read from the replica set member whose network latency falls within the acceptable latency window. To learn more, see Read Preference Modes.

Read preference下拉列表包含以下读取偏好(read preference)选项的集群:

读取偏好
说明

主节点

Reads from the primary node within the cluster. To learn more, see Read Preference Modes.

从节点

Reads from the secondary node within the cluster. To learn more, see Read Preference Modes.

nearest

Reads from the replica set member whose network latency falls within the acceptable latency window. To learn more, see Read Preference Modes.

分析节点