Help Center> Document Database Service> User Guide> Instance Management> Restarting a DB Instance or a Node

Restarting a DB Instance or a Node

Scenarios

You may need to occasionally restart a DB instance to perform routine maintenance. For example, after modifying certain parameters, you must restart the DB instance for the modifications to take effect on the management console.

You can restart a DB instance only when its status is Available.

  • Restarting a DB instance interrupts services, so you should exercise caution when performing this operation.
  • If you restart a DB instance, all nodes in the instance are also restarted.

Background

If you enable operation protection to improve the security of your account and cloud products, two-factor authentication is required for sensitive operations. For details about how to enable operation protection, see Critical Operations in the Identity and Access Management User Guide.

Restarting a DB Instance

  1. Log in to the DDS console.
  2. On the Instance Management page, locate the target DB instance and in the Operation column, choose More > Restart.

    Alternatively, click the target DB instance and on the displayed Basic Information page, click Restart in the upper right corner of the page.

  3. If you have enabled operation protection, click Start Verification in the Restart DB Instance dialog box. On the displayed page, click Send Code, enter the verification code, and click Verify. The page is closed automatically.
  4. In the displayed dialog box, click Yes.
  5. View the restart status.

    1. On the Instance Management page, the instance status is Restarting.
    2. On the Basic Information page, all nodes of the cluster instance cannot be restarted.

Restarting a Node (Cluster)

  1. Log in to the DDS console.
  2. On the Instance Management page, click the target cluster instance.
  3. In the Node Information area on the Basic Information page, click the mongos, shard, or config tab, locate the target node, and in the Operation column, click Restart or choose More > Restart.
  4. In the displayed dialog box, click Yes.
  5. View the node status.

    When one node status is Restarting, other nodes of the instance cannot be restarted.