This topic describes how to create a serverless cluster. Instead of setting fixed specifications for compute nodes, you set a scaling range for the number of read-only nodes and the PolarDB Capacity Units (PCUs) per node. The system then automatically adjusts the number of PCUs and read-only nodes based on the workload.
If you have a PolarDB for MySQL cluster, you can enable the serverless feature directly. For more information, see Enable the serverless feature for a cluster with defined specifications.
If you have another database and want to use the serverless feature, you can 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 an Alibaba Cloud account. For more information, see Register and log on to an Alibaba Cloud account.
Usage notes
The Database Engine does not support MySQL 5.6.
The CPU Architecture is fixed to X86. Yitian ARM is not supported.
Step 1: Basic configuration
Configure the basic settings. These settings include purchase details, such as the billing method, region, and zone, and resource specifications, such as the database engine and resource scaling range.
Configuration | Description |
Billing Method | Serverless |
Region | Select a region that is close to you to reduce network latency. You cannot change the region after the cluster is created. For more information, see Regions and zones. Note Make sure that the PolarDB cluster and the ECS instance to which you want to connect are in the same region. Otherwise, they cannot use the internal network for communication. This degrades performance. |
Creation Method | Create Primary Cluster |
Database Engine | Select a MySQL engine version as needed. For a comparison of versions, see Feature comparison of PolarDB for MySQL 5.6, 5.7, and 8.0.
|
Edition | Select a product edition as needed. For a comparison of editions, see Comparison between Enterprise Edition and Standard Edition.
|
Primary Zone | A zone is an independent physical area within a region. There is no significant difference between zones. Note
|
Network Type | Configure the virtual private cloud (VPC) and vSwitch.
Note Make sure the PolarDB cluster is in the same VPC as the ECS instance you want to connect to. Otherwise, they cannot communicate over the internal network, which prevents optimal performance. |
High-availability 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 scaling range for the serverless cluster |
Note
Note
|
Enable No-activity Suspension | If your database has no service requests during certain periods, you can enable the automatic start and stop feature. After you enable this feature, if no service is connected to the cluster within the specified Detection Period For No-activity Suspension, the cluster automatically enters the suspended state. During the suspension, you are still charged for storage space on a pay-as-you-go basis. If any service connects to the cluster, the cluster starts immediately. Note You cannot set the Detection Period For No-activity Suspension on the purchase page. The detection period is set to 60 minutes by default. After you purchase the cluster, you can modify this parameter on the cluster details page. For more information, see Set automatic or manual start and stop for a serverless cluster. |
Storage Class |
Note
|
Step 2: Advanced options (optional)
Advanced options include the cluster name, resource group, and case sensitivity of table names.
Configuration | Description |
Cluster Name |
|
Resource Group | Select a target resource group that you have created. Note A resource group is a container that manages a set of related resources under a single Alibaba Cloud account. A resource can belong to only one resource group. For more information, see Resource groups and permissions. |
Time Zone | Set the time zone for the cluster. The default is UTC+08:00. |
Table Name Case Sensitivity | Set whether table names in the cluster are case-sensitive.
Note
|
Step 3: Confirm the order
Confirm the cluster configuration and specify the quantity. Ensure that the configurations meet your requirements.
Review the selected configurations.
Set the Quantity for the cluster. The default is 1.
NoteYou can create up to 50 clusters at a time. This is useful for scenarios such as launching multiple game servers in batches.
Read the Terms of Service, Service Level Agreement, and any applicable product-specific terms.
Click Buy Now.
After the purchase is successful, it takes 10 to 15 minutes to create the cluster. You can then view the new cluster in the cluster list.
NoteIf the cluster status is Creating, it means the cluster is still being created and is unavailable. The cluster is available only when its status changes to Running.
Ensure that you select the correct region. Otherwise, the cluster you created will not be visible.