Configuring a Recycle Bin Policy

Scenarios

If you have configured scaling policies for your workloads, the system may frequently delete EVS disks. At the same time, if you have also enabled EVS recycle bin, but do not want these frequently deleted disks to be moved to the recycle bin, you can configure a recycle bin policy to reduce unintended costs.

Example scenarios:

  • Scenario 1: You have used Auto Scaling to dynamically scale services. The system may frequently delete disks based on the configured scaling policy. In this case, you can configure an appropriate recycle bin policy based on the scaling cycle to avoid moving any unintended disks to the recycle bin.
  • Scenario 2: You have used Cloud Container Engine (CCE) to run workloads. The system may frequently delete disks based on the configured container scaling policy. In this case, you can configure an appropriate recycle bin policy based on the scaling cycle to avoid moving any unintended disks to the recycle bin.
  • Scenario 3: You have used spot ECSs. If the inventory resources are insufficient or market price increases above your expected price, the system will automatically release your spot ECSs and their disks. Such disks will be moved to the recycle bin if they meet the criterion specified in the recycle bin policy. If you do not need these disks, you can manually delete them from the recycle bin.

    These examples are for your reference only. You can configure an appropriate policy based on your own service scenario.

Constraints

The number of days you can set for a recycle bin policy ranges from 7 to 1,000 days and defaults to 7 days.

When the OS of an ECS is reinstalled, a new system disk will be created to replace the original one. EVS determines whether to move the original disk to the recycle bin by comparing the number of days elapsed after the disk was created with the days configured for the recycle bin policy.

Procedure

  1. Log in to the management console.
  2. Under Storage, click Elastic Volume Service.

    The disk list page is displayed.

  3. Click the Recycle Bin tab.
  4. In the upper right corner of the Recycle Bin tab page, click Configure Policy.

    The Configure Recycle Bin Policy page is displayed.

  5. Set the minimum number of days that must elapse after a disk was created before it can be moved to the recycle bin upon deletion or unsubscription.

    For example, if you set 7 days for the recycle bin policy, EVS disks created within 7 days will not be moved to the recycle bin upon deletion and will be deleted permanently. EVS disks created at least 7 days ago will be moved to the recycle bin upon deletion and billed on a pay-per-use basis.

  6. Click Confirm.