Updated on 2023-03-15 GMT+08:00

Restarting an Instance or a Node

You may need to occasionally restart an instance to perform routine maintenance. For example, after modifying certain parameters, the instance may need to be restarted to apply the changes.

Precautions

  • You can restart an instance only when its status is Available.
  • Restarting an instance will interrupt services. Exercise caution when performing this operation.
  • This instance is not available when it is being restarted. Restarting an instance will clear the cached memory in it. You are advised to restart it during off-peak hours.
  • If you restart an instance, all nodes in the instance are also restarted.
  • You can restart a cluster instance by restarting any mongos, shard, or config node. During the restart, the node cannot be accessed.

Restarting an Instance

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, locate the instance and in the Operation column, choose More > Restart.

    Figure 1 Restarting an instance

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

    Figure 2 Restarting an instance

  5. 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.
  6. In the displayed dialog box, click Yes.
  7. View the instance status.

    On the Instances page, the instance status is Restarting.

Restarting a Cluster Node

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, click the cluster instance name.
  5. In the Node Information area on the Basic Information page, click the mongos, shard, or config tab, locate a node, and in the Operation column, click Restart.

    Figure 3 Restarting a mongos node

  6. In the displayed dialog box, click Yes.
  7. View the node status.

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