When creating a Serverless cluster, you do not specify fixed specifications for each compute node. Instead, you only need to define the scaling range for the number of read-only nodes and the PCU scaling range for each node. PolarDB automatically scales the cluster's primary and read-only nodes within the ranges you define. This topic describes how to create a Serverless cluster.
To use the Serverless feature with an existing database, use Data Transmission Service (DTS) to migrate your data to a new serverless cluster. For more information, see Data Migration Solutions Overview and .
Prerequisites
You have an Alibaba Cloud account and are logged in. For more information, see Sign up for and sign in to an Alibaba Cloud account.
Step 1: Configure basic settings
Basic settings include the billing method, region, availability zone, database engine, and resource scaling range.
|
Parameter |
Description |
|
Billing Method |
Serverless |
|
Region |
Select a region nearest your users to reduce network latency. The region cannot be changed after the cluster is created. For more information, see Regions and availability zones. Note
To ensure optimal performance, ensure your PolarDB cluster and the ECS instances that need to connect to it are in the same region. Otherwise, they can communicate only over the public internet, which may degrade performance. |
|
Creation Method |
Create the master cluster |
|
Database Engine |
Select a database engine version.
|
|
Service Edition |
Select a product version.
|
|
Primary Zone |
An availability zone is an independent physical location within a region. Availability zones in the same region offer similar connectivity and performance. Note
|
|
Network Type |
Configure the Virtual Private Cloud (VPC) and vSwitch.
Note
To ensure optimal performance, make sure your PolarDB cluster and the ECS instances that need to connect to it are in the same VPC. Otherwise, they cannot communicate over the internal network. |
|
HA Mode |
PolarDB provides multiple high availability modes. After you enable the hot standby storage cluster feature for a PolarDB cluster, a hot standby storage cluster is created in the secondary zone of the region in which the PolarDB cluster resides or in a different data center in the same zone. The hot standby storage cluster has independent storage resources. Whether the hot standby storage cluster has independent compute resources varies based on the high availability mode. When the PolarDB cluster in the primary zone fails, the hot standby storage cluster immediately takes over and handles read and write operations and storage tasks. Note
|
|
Configure resource scaling range for the serverless cluster |
Note
Note
|
|
Enable No-activity Suspension |
If your database experiences periods of inactivity, you can enable this feature. When enabled, the cluster automatically pauses if there are no active connections within the specified Detection Period for No-activity Suspension. During the pause, you are still charged for storage on a pay-as-you-go basis. The cluster automatically resumes as soon as a connection is established. Note
|
|
Storage Type |
|
Step 2: Configure advanced settings (optional)
Advanced settings include configurations for the cluster name, resource group, and table name case sensitivity.
|
Parameter |
Description |
|
Cluster Name |
|
|
Resource Group |
Select a target resource group from the list of existing resource groups. Note
A resource group is a container that helps you manage a set of related resources under a single Alibaba Cloud account. Each resource can belong to only one resource group. For more information, see Resource groups and authorization. |
|
Enable TDE |
You can enable Transparent Data Encryption (TDE) when you create the cluster, which eliminates the need to enable it separately after creation. Note
|
Step 3: Confirm your order
Review the cluster configuration, set the purchase quantity, and ensure that all settings meet your requirements.
-
Review your selected configurations.
-
Set the Quantity of clusters to create. The default value is 1.
NoteYou can create up to 50 clusters at once, which is useful for scenarios such as batch server deployments for games.
-
Read the Product Terms of Service, Service Level Agreement (SLA), and any product-specific terms that you selected on this page.
-
After you confirm the configurations, click Buy Now.
Cluster creation takes 10 to 15 minutes. You can then find the new cluster in the cluster list.
Note-
The cluster is ready for use only when its status changes from Creating to Running.
-
Ensure you have selected the correct region to find the newly created cluster.
-