Monitoring an Amazon DocumentDB Cluster’s Status

The status of a cluster indicates the health of the cluster. You can view the status of a cluster by using the Amazon DocumentDB console or the AWS CLI describe-db-clusters command.

Cluster Status Values

The following table lists the valid values for a cluster’s status.

Cluster StatusDescription
availableThe cluster is healthy and available.
backing-upThe cluster is currently being backed up.
creatingThe cluster is being created. It is inaccessible while it is being created.
deletingThe cluster is being deleted. It is inaccessible while it is being deleted.
failing-overA failover from the primary instance to an Amazon DocumentDB replica is being performed.
inaccessible-encryption-credentialsThe AWS KMS key used to encrypt or decrypt the cluster can’t be accessed.
maintenanceA maintenance update is being applied to the cluster. This status is used for cluster-level maintenance that Amazon DocumentDB schedules well in advance.
migratingA cluster snapshot is being restored to a cluster.
migration-failedA migration failed.
modifyingThe cluster is being modified because of a customer request to modify the cluster.
renamingThe cluster is being renamed because of a customer request to rename it.
resetting-master-credentialsThe master credentials for the cluster are being reset because of a customer request to reset them.
upgradingThe cluster engine version is being upgraded.

Monitoring a Cluster’s Status Using the AWS Management Console

When using the AWS Management Console to determine the status of a cluster, use the following procedure.

  1. Sign in to the AWS Management Console, and open the Amazon DocumentDB console at https://console.aws.amazon.com/docdb.

  2. In the navigation pane, choose Clusters.

  3. In the Clusters navigation box, you’ll see the column Cluster identifier. Your instances are listed under clusters, similar to the screenshot below.

    ![

    1. Screenshot of clusters page with sample-cluster
    2. showing active status.
    3. ](/projects/DocumentDB-20201111-en/144057ee73540088f753b799d5e3a342.png)
  4. In the Cluster identifier column, find the name of the instance that you are interested in. Then, to find the status of the instance, read across that row to the Status column, as shown below.

    ![

    1. Screenshot of clusters page with sample-cluster
    2. showing active status.
    3. ](/projects/DocumentDB-20201111-en/d69ee469e051795f0142807f2f4da68d.png)

Monitoring a Cluster’s Status Using the AWS CLI

When using the AWS CLI to determine the status of a cluster, use the describe-db-clusters operation. The following code finds the status of the cluster sample-cluster.

For Linux, macOS, or Unix:

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

For Windows:

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

Output from this operation looks something like the following.

  1. [
  2. [
  3. "sample-cluster",
  4. "available"
  5. ]
  6. ]