确定集群的状态 - Amazon DocumentDB
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

确定集群的状态

您可以使用 Amazon Web Services Management Console 或来确定集群的状态 Amazon CLI。

Using the Amazon Web Services Management Console

使用以下步骤通过以下步骤查看您的 Amazon DocumentDB 集群的状态 Amazon Web Services Management Console

  1. 登录并打开亚马逊 DocumentDB 控制台,网址为 https://console.aws.amazon.com/docdb。 Amazon Web Services Management Console

  2. 在导航窗格中,选择集群

  3. Cluster identifier (集群标识符) 列中,找到您感兴趣的集群名称。然后,要查找集群的状态,请跨该行阅读至 Status (状态) 列,如下所示。

    
                           带显示活动状态的示例集群的集群页屏幕截图。
Using the Amazon CLI

使用 describe-db-clusters 操作以使用 Amazon CLI查看 Amazon DocumentDB 集群的状态。

以下代码可查找集群 sample-cluster 的状态。

对于 Linux、macOS 或 Unix:

aws docdb describe-db-clusters \ --db-cluster-identifier sample-cluster \ --query 'DBClusters[*].[DBClusterIdentifier,Status]'

对于 Windows:

aws docdb describe-db-clusters ^ --db-cluster-identifier sample-cluster ^ --query 'DBClusters[*].[DBClusterIdentifier,Status]'

此操作的输出将类似于下文(JSON 格式)。

[ [ "sample-cluster", "available" ] ]