Updated on 2024-08-03 GMT+08:00

Recycling an Instance

GeminiDB Mongo API can move unsubscribed yearly/monthly instances and deleted pay-per-use DB instances to the recycle bin, so you can rebuild the DB instance and restore data from it.

Precautions

  • If you delete an instance of full storage, the deleted instance will not be moved to the recycle bin.
  • The recycling policy is enabled by default and cannot be disabled. Instances in the recycle bin are retained for 7 days by default, and this will not incur any charges.
  • Currently, you can put up to 100 instances into the recycle bin. If the maximum number of instances is reached, you cannot put instances into the recycle bin anymore.
  • You can modify the retention period, and the changes only apply to the DB instances deleted after the changes, so exercise caution when performing this operation.

Modifying the Recycling Policy

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Mongo API.
  3. On the Recycling Bin page, click Modify Recycling Policy. In the displayed dialog box, set the retention period from 1 day to 7 days. Then, click OK.

    Figure 1 Modifying the recycling policy

Rebuilding an Instance

You can rebuild DB instances from the recycle bin within the retention period to restore data.

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Mongo API.
  3. On the Recycling Bin page, locate the instance that you want to rebuild and click Rebuild in the Operation column.

    Figure 2 Rebuilding an instance

  4. On the displayed page, set required parameters and submit the rebuilding task.