This topic describes how to create a serverless cluster. You do not need to specify fixed specifications for compute nodes. Instead, you only set the scaling ranges for the number of read-only nodes and PolarDB Compute Units (PCUs) per node. The system then automatically adjusts the number of PCUs and read-only nodes within these ranges based on the actual workload.
-
If you already have a PolarDB for MySQL cluster, we recommend that you enable the serverless feature for it directly. For more information, see Enable the serverless feature for a cluster with fixed specifications.
-
If you have another database and want to use the serverless feature, we recommend that you use Data Transmission Service (DTS) to migrate your data to a new serverless cluster. For more information, see Overview of data migration solutions.
Prerequisites
You have registered for an Alibaba Cloud account and are logged in. For more information, see Sign up for and log on to an Alibaba Cloud account.
Usage notes
-
Database Engine does not support MySQL 5.6.
-
The CPU architecture is limited to x86. Yitian ARM is not supported.
Step 1: Basic configuration
Configure the basic settings for your cluster, such as the billing method, region, and zone, as well as essential resources like the database engine and the scaling ranges for cluster resources.
|
Parameter |
Description |
|
Billing Method |
Serverless |
|
Region |
Select a region close to your users to reduce network latency. You cannot change the region after you create the cluster. For more information, see Regions and zones. Note
To ensure optimal performance, make sure that your PolarDB cluster and the Elastic Compute Service (ECS) instances you want to connect are in the same region. Otherwise, they can only communicate over the public internet, which degrades performance. |
|
Creation Method |
Create Primary Cluster |
|
Database Engine |
Select a MySQL engine version based on your requirements. For a feature comparison, see Features of PolarDB for MySQL 5.6, 5.7, and 8.0.
|
|
Database Edition |
Select an edition based on your needs. For a feature comparison, see Comparison between Enterprise Edition and Standard Edition.
|
|
Primary Zone |
A zone is an independent physical area within a region. Zones in the same region have the same service capabilities. Note
|
|
Network Type |
Configure a Virtual Private Cloud (VPC) and a vSwitch.
Note
To ensure optimal performance, make sure that your PolarDB cluster and the ECS instances that you want to connect 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
|
|
Set the resource scaling range for the serverless cluster |
Note
Note
|
|
Enable No-activity Suspension |
If your database is idle during specific periods, you can enable this feature. When enabled, the cluster automatically enters a paused state if there are no connections within the specified Detection Period for No-activity Suspension. You are still charged for storage on a pay-as-you-go basis while the cluster is paused. The cluster automatically resumes when a connection is initiated. Note
You cannot set the Detection Period for No-activity Suspension on the purchase page. It defaults to 60 minutes. After you create the cluster, you can change this setting on the cluster details page. For more information, see Set automatic start or manually start a serverless cluster. |
|
Storage Type |
Note
|
Step 2: Advanced options
Configure advanced settings such as the cluster name, resource group, and table name case-sensitivity.
|
Parameter |
Description |
|
Cluster Name |
|
|
Resource Group |
Select a resource group from the list of resource groups. Note
A resource group is a container that lets you manage a group of related resources under a single Alibaba Cloud account. A resource can belong to only one resource group. For more information, see Resource groups. |
|
Time Zone |
Set the time zone for the cluster. The default is UTC+08:00. |
|
Table name case-sensitivity |
Specifies whether table names are case-sensitive.
Note
|
Step 3: Confirm your order
Review the overall cluster configuration and specify the quantity to ensure all settings meet your requirements.
-
Review the selected configurations.
-
Specify the Quantity of clusters to create. The default is 1.
NoteYou can create up to 50 clusters at once. This is useful for scenarios such as batch provisioning game servers.
-
Read the Product Terms of Service, Service Level Agreement, and any product-specific terms that you selected.
-
Click Buy Now.
After a successful purchase, it takes 10 to 15 minutes to create the cluster. You can then view the new cluster in the cluster list.
Note-
You can use the cluster only when its status changes to Running. When the cluster status is Creating, the cluster is not yet fully available.
-
Make sure that you have selected the correct region. Otherwise, you will not see the cluster you created.
-