The cluster recycle bin stores released PolarDB clusters. You can restore a cluster in the recycle bin to a new cluster, or delete a backup set of the cluster. This topic uses a cluster as an example to describe how to use the cluster recycle bin.

Notes

  • Each cluster in the cluster recycle bin must have at least one backup set. When all the backup sets of the cluster have been deleted, you cannot restore a cluster in the recycle bin.
  • After a cluster is released, all the level-1 backups in the cluster recycle bin are asynchronously archived to level-2 backups at a rate of approximately 150 MB/s. For more information about backups, see Overview.

Pricing

You can use level-1 backups free of charge, but you are charged for using level-2 backups.

Region Fee (USD/GB/hour)
Mainland China 0.0000325
China (Hong Kong) and regions outside China 0.0000455

Restore data to a new cluster

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster is deployed.
  3. In the left-side navigation pane, click Cluster Recycle.
  4. Find the cluster that you want to manage, and click Restore to New Cluster in the Actions column.
    Restore data to a new cluster
  5. Specify Pay-As-You-Go as the value of the Product Type parameter.
  6. Specify the following parameters.
    Parameter Description
    Region The region where the cluster resides. You cannot change the region after the cluster is created.
    Note Make sure that the PolarDB cluster and the Elastic Compute Service (ECS) instance to be connected are deployed in the same region. Otherwise, the cluster and the ECS instance cannot communicate over the internal network and can communicate over only the Internet. This compromises performance.
    Create Type Select Restore from Recycle.

    This value indicates that the deleted database is restored from the recycle bin.

    Source Version Select the version of the deleted cluster.
    Deleted Clusters Select the name of the deleted cluster.
    Backup History Select the backup to be restored.
    Note The timestamps of the backups in the Historical Backup drop-down list are displayed in UTC. The timestamps of backups in the Backups list are displayed in the system time format. Make sure that you choose the correct historical backup. For example, the timestamp of a backup in the Backups list is 10:00:00 on May 8, 2020 (UTC+08:00). The timestamp of the corresponding historical backup is 2020-05-08T02:00:00Z.
    Primary Availability Zone The primary zone of the cluster.
    • Each zone is an independent geographical location that resides in a region. All the zones in a region provide the same services.
    • You can deploy your PolarDB cluster and ECS instance in the same zone or in different zones.
    • You need only to select the primary zone. The system automatically selects a secondary zone.
    Network Type The type of the network. The value of this parameter is VPC. You do not need to select the value of this parameter.
    Note Before you use the classic network, you must select a virtual private cloud (VPC). After the cluster is created, configure the classic network. For more information, see VPC-facing endpoints and public-facing endpoints.
    VPC

    VSwitch

    Make sure that the PolarDB cluster and the ECS instance to be connected are deployed in the same VPC. Otherwise, the cluster and the ECS instance cannot communicate over the internal network. This compromises performance.
    • If you have created a VPC that meets your network plan, select the VPC. For example, if you have created an ECS instance and the VPC where the ECS instance resides meets your network plan, select this VPC.
    • Otherwise, use the default VPC and vSwitch.
      • Default VPC:
        • The default VPC is a unique VPC in the selected region.
        • The subnet mask for the default VPC consists of 16 bits, such as 172.31.0.0/16. A maximum of 65,536 private IP addresses can be provided.
        • The default VPC is not included in the VPC quota that Alibaba Cloud assigns to you.
      • Default vSwitch:
        • The default vSwitch is a unique vSwitch in the selected zone.
        • The subnet mask for the default vSwitch consists of 20 bits, such as 172.16.0.0/20. A maximum of 4,096 private IP addresses can be provided.
        • The default vSwitch is not included in the total number of vSwitches that you can create in a VPC.
    • If the default VPC and vSwitch cannot meet your business requirements, you can create your own VPC and vSwitch. For more information, see Create a VPC.
    Compatibility The database engine version of the PolarDB cluster. The default version is the same as the version of the deleted cluster and cannot be changed.
    Edition The value of this parameter is Cluster (2-16 Nodes) (Recommended). You do not need to select the value of this parameter.
    Node Specification

    Select a specification based on your requirements. We recommend that you select a specification that is the same or higher than the specification of the deleted cluster. All the PolarDB nodes of Cluster Edition are dedicated nodes. The dedicated nodes offer stable and reliable performance. For more information, see Billable items.

    Nodes You do not need to select the value of this parameter. By default, the system creates the following two nodes that have the same specification: a primary node and a read-only node.
    Note If the primary node fails, the system uses the read-only node as the primary node and generates another read-only node. For more information about read-only nodes, see Architecture.
    Storage Cost You do not need to select the value of this parameter. You are charged for the used storage space on an hourly basis. For more information, see Specifications and pricing.
    Note You do not need to select a storage capacity when you create a cluster. The system automatically scales the storage capacity when the amount of data is increased or decreased.
    Time Zone The time zone of the cluster. The default value is UTC+08:00.
    Table Name Case Sensitivity Specifies whether table names of the cluster are case-sensitive. You can select Not Case-sensitive (Default). When the local database is case-sensitive, you can select Case-sensitive. This ensures that you can migrate data in an easy way.
    Note The value of this parameter cannot be changed after the cluster is created. Proceed with caution.
    Release Cluster The backup retention policy that is used when the cluster is deleted or released. The default value is Retain Last Automatic Backup (Automatic Backup before Release).
    • Retain Last Automatic Backup (Automatic Backup before Release): retains the last backup when you delete the cluster.
    • Retain All Backups: retains all the backups when you delete the cluster.
    • Delete All Backups (Cannot be restored): retains no backups when you delete the cluster.
    Note If you need to retain backups when you delete or release the instance, you may need to pay a few fees. You can delete the backups to reduce costs. For more information, see Billable items.
    Cluster Name The name of the cluster. The name must meet the following requirements:
    • It cannot start with http:// or https://.
    • It must be 2 to 256 characters in length.

    If you do not specify this parameter, the system automatically generates a cluster name. You can change the cluster name after the cluster is created.

    Resource Group The resource group of the cluster. Select a resource group from available resource groups. For more information about how to create a resource group, see Create a resource group.
    Note A resource group is a container that contains a group of resources in an Alibaba Cloud account. You can perform centralized management on these resources. A resource belongs to only one resource group. For more information, see Use RAM to create and authorize resource groups.
  7. If you create a subscription cluster, specify the Purchase Plan and Number parameters and click Buy Now in the right corner.
  8. On the Confirm Order page, confirm your order information. Read and accept the terms of service, and then click Activate Now.

    After you complete the activation, it takes 10 to 15 minutes to create the cluster. Then, the newly created cluster is displayed on the Clusters page.

    Note
    • If nodes in the cluster are in the Creating state, the cluster is being created and unavailable. The cluster is available only if it is in the Running state.
    • Make sure that you have selected the region where the cluster is deployed. Otherwise, you cannot view the cluster.
    • We recommend that you purchase subscription PolarDB storage plans to store a large amount of data. Storage plans are more cost-effective than pay-as-you-go storage. You are offered larger discounts if you purchase storage plans that provide larger storage capacities. For more information, see Together with storage plans.
  9. On the Purchase page, confirm the unpaid order and the payment method and click Purchase.
    Note The amount of time consumed to restore data to a new cluster depends on the size of the backup. It takes more time for the system to restore data from a larger backup. After the cluster is created, you can return to the PolarDB console and view the newly created cluster on the Clusters page.

Delete a backup

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster is deployed.
  3. In the left-side navigation pane, click Cluster Recycle.
  4. Find the cluster that you want to manage, and click the Plus icon icon next to the cluster to show a list of backup sets.
  5. Find the backup set that you want to delete, and click Delete in the Actions column.
    Delete a backup
  6. In the message that appears, click OK.
    Warning If you delete all the backup sets of a cluster in Cluster Recycle, the cluster cannot be restored. Proceed with caution.

Related documentation

Release a cluster