This topic describes how to restore a released PolarDB for PostgreSQL cluster from the cluster recycle bin.
Usage notes
To restore a released cluster from the recycle bin, make sure the cluster has at least one available backup set. If all backup sets of the cluster have been deleted, you cannot restore the cluster.
The data of all released clusters in the cluster recycle bin is asynchronously archived to level-2 backups at a rate of approximately 150 MB/s. For more information about backups, see Backup and restoration.
Procedure
Log on to the PolarDB console.
In the left-side navigation pane, click Cluster Recycle Bin.
Select the region of the cluster you want to restore. In the cluster list, find the cluster and click Restore Data to New Cluster in its Actions column.
On the Custom Purchase page, configure the following parameters:
Parameter
Description
Billing Method
Subscription: an upfront payment model. You select and pay upfront for resources when you create a cluster. The longer the subscription duration, the larger the discount. This billing method is suitable for business services with predictable and consistent workloads over an extended time period.
Pay-as-you-go: a postpaid model. You select resources but do not need to pay for them upfront when you create a cluster. You are charged based on your actual resource usage. This billing method is suitable for business services with fluctuating or unpredictable workloads.
NoteIf the current billing method of your PolarDB cluster does not meet your business requirements, you can change the billing method.
Region
The region of the cluster. You cannot change the region of a cluster after the cluster is created.
NoteTo ensure optimal performance and security, make sure that the PolarDB cluster and the ECS instance from which you connect to the cluster are in the same region.
You can deploy the PolarDB cluster and the ECS instance in the same zone or across different zones. Deploying them in the same zone can reduce network latency and improve access speed.
Creation Method
Select Restore from Recycle Bin.
Source Version
The version of the released cluster.
Deleted Clusters
The name of the released cluster.
Historical Backups
The backup set from which you want to restore the cluster.
NoteThe Historical Backups field displays the backup time in UTC, while the backup list displays the backup time in the local system time. Make sure that you select the correct historical backup. For example, if the backup time displayed in the current backup list is
2020-05-08 10:00:00 (UTC+8)
, the corresponding historical backup time is2020-05-08T02:00:00Z
.Database Engine
The database engine version of the PolarDB cluster. The database engine version is the same as that of the released cluster and cannot be changed.
Database Edition
The edition of the PolarDB cluster. Valid values: Standard Edition and Enterprise Edition.
Specification
Valid values: General-purpose and Dedicated:
Dedicated: The cluster does not share allocated compute resources such as CPUs with other clusters on the same server. This improves the reliability and stability of the cluster.
General-purpose: The cluster shares idle computing resources such as CPUs with other clusters on the same server. This improves cost efficiency.
CPU Architecture
Valid values: X86 or YiTian ARM.
X86: The x86 architecture is equipped with Intel processors and integrated with high-performance networking capabilities to significantly improve overall performance and stability and meet the demands of enterprise applications with high requirements for business stability and computing performance.
ARM: The ARM architecture is equipped with YiTian 710 processor chips developed by Alibaba Cloud and 25 Gigabit Ethernet intelligent high-speed network cards to deliver strong computing power. It is also integrated with high-performance networking capabilities to meet the demands of public service sectors, internet, and other enterprises for cost-effective, secure, and stable cloud-based services.
Primary Zone
The primary zone where the cluster is deployed.
A zone is an independent geographical location in a region. All zones in a region provide the performance level.
You can deploy the PolarDB cluster and the ECS instance in the same zone or across different zones.
Network Type
Configure the VPC and vSwitch.
The system automatically selects VPC. Manual configuration is not required. To ensure optimal performance and security, make sure that the PolarDB cluster and the ECS instance from which you connect to the cluster are in the same VPC.
If you have an existing VPC that meets your network requirements, select it. For example, if you have created an ECS instance and the VPC where the ECS instance resides meets your network requirements, select this VPC.
Otherwise, use the default VPC and the default vSwitch:
Default VPC:
Each region has only one default VPC.
The CIDR block of the default VPC uses a 16-bit subnet mask. For example, the CIDR block of the default VPC can be 192.168.0.0/16. This CIDR block provides up to 65,536 private IP addresses.
The default VPC does not consume the VPC quota allocated by Alibaba Cloud.
Default vSwitch:
Each zone has only one default vSwitch.
The CIDR block of the default vSwitch uses a 20-bit subnet mask. For example, the CIDR block of the default vSwitch can be 192.168.0.0/20. This CIDR block provides up to 4,096 private IP addresses.
The default vSwitch does not consume the vSwitch quota allocated by Alibaba Cloud.
If the default VPC and vSwitch do not meet your requirements, you can create new ones. For more information, see Create and manage a VPC.
High Availability Mode
Select the high availability mode.
Dual AZ (Enable Hot Standby Storage Cluster): PolarDB deploys the primary cluster (which includes mutually backed-up compute nodes + primary storage) and a hot standby storage cluster within the same region. The clusters each maintain three data replicas (a total of 6 data replicas). This provides higher SLA reliability guarantees.
Single AZ (Disable Hot Standby Storage Cluster): Only the primary cluster is retained, with 3 data replicas. The storage cost per unit is half of the cost when the hot standby storage cluster is enabled. The cluster's SLA reliability is reduced compared to the dual AZ setup.
NoteFor more information about the hot standby storage cluster and related solutions, see High availability mode.
Secondary Zone
Select the secondary zone. This parameter is required only if you set High Availability Mode to Dual AZ (Enable Hot Standby Storage Cluster). You can select Automatically Allocated for the automatical allocation of a secondary zone.
Nodes
By default, the cluster consists of one primary node and one read-only node. You can select two nodes (a primary node and a read-only node) or one node (a primary node) for the cluster.
PolarProxy Type
Valid values: Standard Enterprise Edition and Dedicated Enterprise Edition.
Standard Enterprise Edition: matches general-purpose clusters. PolarProxy of this type uses shared CPU resources and provides intelligent, second-level elastic scaling based on business workloads.
Dedicated Enterprise Edition: matches dedicated clusters. PolarProxy of this type exclusively occupies all allocated CPU resources to enhance stability.
Storage Type
PolarDB supports the following storage types: ESSD, PSL5, and PSL4.
ESSDs: a new generation of ultra-high-performance disks developed by Alibaba Cloud for demanding workloads. Enterprise SSDs (ESSDs) use a next-generation distributed block storage architecture, combined with 25 GE networking and Remote Direct Memory Access (RDMA) technology, to deliver up to one million random read/write IOPS per disk and ultra-low latency. ESSDs are available in the following performance levels (PLs):
ESSD PL0: provides baseline performance.
ESSD PL1: provides five times the IOPS and approximately twice the throughput of a PL0 ESSD.
ESSD PL2: provides approximately twice the IOPS and throughput of a PL1 ESSD.
ESSD PL3: provides up to ten times the IOPS and five times the throughput of a PL2 ESSD. They are suitable for business scenarios that involve processing highly concurrent requests with exceptional I/O performance and consistently low read/write latencies.
ESSD AutoPL: Compared with ESSDs at the preceding performance levels, an ESSD AutoPL disk decouples IOPS and storage. This makes configuration and adjustment more flexible and reduces the Total Cost of Ownership (TCO).
PSL5: the storage type supported in the PolarDB historical versions. It delivers higher performance, reliability and availability.
PSL4: a new PolarDB storage type that uses the smart-SSD technology developed by Alibaba Cloud to compress and decompress data at the physical SSD level. It reduces storage costs per unit capacity while keeping the performance impact within manageable limits.
NoteWhen the storage space of an ESSD is fully utilized, it is locked and enters a read-only state where no additional data can be written.
For a detailed comparison between PSL5 and PSL4, see How do I choose between PSL4 and PSL5?.
You cannot change the storage type of an existing cluster. To change the storage type, you must create a new cluster with the desired storage type and then migrate data from the original cluster to the new one.
Storage Billing Method
PolarDB supports the Pay-as-you-go and Subscription storage billing methods.
Pay-as-you-go: This billing model uses a serverless approach. You do not need to select a specific storage capacity at the time of purchase. The storage automatically scales online as your data grows, and you are only charged based on the actual amount of storage space consumed by your data.
Subscription: You prepay for the storage space when you purchase the cluster.
NoteThis parameter is available only if you set Billing Method to Subscription and Database Edition to Enterprise Edition.
If you set Billing Method to Subscription and Database Edition to Standard Edition, the storage billing method is Subscription.
Storage
The storage capacity you want to purchase for your cluster. The available storage capacity range depends on the compute node specifications and the storage type:
If the storage type is PSL4/PSL5, the valid range is 10 GB to 500 TB, with a minimum adjustment increment of 10 GB.
If the storage type is ESSD, the valid range is 20 GB to 64 TB, with a minimum adjustment increment of 10 GB.
NoteThis parameter is available only if you set Billing Method to Subscription and Storage Billing Method to Subscription.
On the right side of the page, confirm that all configuration items (such as Billing Method, Region, Creation Mode, and Resource Group) meet your business requirements. Then, configure the following parameters:
Parameter
Description
Quantity
The number of clusters you want to purchase.
NoteYou can create up to 50 clusters at a time. This is suitable for business scenarios such as batch server launches in gaming applications.
An Alibaba Cloud account can purchase up to 50 clusters in total.
Duration
This configuration is required only if you set Billing Method to Subscription. You can also select whether to Enable Auto-Renewal.
NoteWe recommend that you select Enable Auto-Renewal to prevent service interruptions caused by overdue payments.
Review the total cost and the detailed breakdown of expenses (including compute specifications, storage, and network), and click Buy Now. By clicking this button, you acknowledge and agree to the service agreement and any product-specific terms you may have selected on the page, if applicable. On the Payment page, verify the information regarding your order, select a payment method, and then click Pay.
It takes about 10 to 15 minutes to create the cluster after the purchase is complete. After this setup period, you can see the new cluster in the cluster list.
NoteWhen a node in the cluster is in the Creating state, the entire cluster may not yet be fully established. In this case, the cluster is unavailable. The cluster is available only when its status is Running.
Make sure that you select the region where the cluster is deployed. Otherwise, the cluster is not displayed.
Related API operations
Operation | Description |
Creates a PolarDB cluster. |