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
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 defaultValidate 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