Skip to main content
Version: release-0.8

Restart MongoDB cluster

You can restart all pods of the cluster. When an exception occurs in a database, you can try to restart it.

Steps

  1. Restart a cluster with kbcli cluster restart command and enter the cluster name again.

    kbcli cluster restart mongodb-cluster
    >
    OpsRequest mongodb-cluster-restart-pzsbj created successfully, you can view the progress:
    kbcli cluster describe-ops mongodb-cluster-restart-pzsbj -n default
  2. Validate the restarting with the request code randomly generated, in this guide, it is pzsbj, see step 1.

     kbcli cluster describe-ops mongodb-cluster-restart-pzsbj -n default