決定叢集的狀態 - Amazon DocumentDB

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

決定叢集的狀態

您可以使用或來判斷叢集的 AWS Management Console 狀態 AWS CLI。

Using the AWS Management Console

請使用下列程序來查看 Amazon DocumentDB 叢集的狀態 AWS Management Console

  1. 登入 AWS Management Console,然後在 https://console.aws.amazon.com/docdb 開啟 Amazon DocumentDB 主控台。

  2. 在導覽窗格中,選擇叢集

  3. Cluster identifier (叢集識別碼) 欄中尋找您有興趣之叢集的名稱。然後,閱讀該列上的 Status (狀態) 欄找出叢集的狀態,如下所示。

    叢集頁面的螢幕擷取畫面,其中範例叢集會顯示作用中狀態。
Using the AWS CLI

您可以使用此describe-db-clusters作業查看 Amazon DocumentDB 叢集的狀態,使用. AWS CLI

以下程式碼會尋找叢集 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" ] ]