Create a serverless cluster
Create a serverless cluster that scales compute resources automatically. You do not need to specify fixed node specifications for compute nodes; you only set the scaling limits for the number of read-only nodes and the PolarDB Capacity Unit (PCU) range per node. Based on the actual workload, the system automatically adjusts the number of PCUs of each node in the cluster and the number of read-only nodes within the ranges that you set.
-
(Recommended) If you already have a PolarDB for MySQL cluster, enable the serverless feature for it directly. For instructions, see Enable serverless for fixed-specification clusters.
-
(Recommended) If you have another database and need to use the serverless feature, use Data Transmission Service (DTS) to migrate the original database to the new serverless cluster. For details, see Overview.
Prerequisites
You have registered and logged on to an Alibaba Cloud account. For instructions, see Register and log on to an Alibaba Cloud account.
Usage notes
-
Database engine does not support MySQL 5.6.
-
CPU architecture is fixed as x86. Yitian ARM is not supported.
Step 1: Basic configuration
The basic configuration covers purchasing requirements, such as the billing method and the region and zone, and cluster resources, such as the database engine and the resource scaling range.
|
Parameter |
Description |
|
Billing Method |
Serverless |
|
Region |
Select a nearby region to reduce network latency. You cannot change the region after you purchase the cluster. For more information, see Regions and zones. Note
Make sure that the PolarDB cluster and the Elastic Compute Service (ECS) instances that you want to connect are created in the same region. Otherwise, they can communicate only over the Internet, not over the internal network, which prevents optimal performance. |
|
Creation Method |
Create Primary Cluster |
|
Database Engine |
Select the MySQL engine version that meets your requirements. For a version comparison, see Feature comparison of PolarDB for MySQL 5.6, 5.7, and 8.0.
|
|
Database Edition |
Select the product edition that meets your requirements. For an edition comparison, see Differences between Enterprise Edition and Standard Edition.
|
|
Primary Zone |
A zone is an independent physical area within a region. There are no substantive differences between zones. Note
|
|
Network Type |
Configure a Virtual Private Cloud (VPC) and a vSwitch.
Note
Make sure that the PolarDB cluster and the ECS instances that you want to connect are created in the same VPC. Otherwise, they cannot communicate over the internal network, which prevents optimal performance. |
|
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 serverless cluster resource scaling range |
Note
Note
|
|
Enable No-activity Suspension |
If your serverless cluster does not receive requests within specific periods of time, you can configure the automatic start and stop feature for the instance. After you enable this feature and if no service is connected to the cluster within the period defined by the Detection Period for No-activity Suspension parameter, the cluster automatically enters the suspended state. During the suspension period, you are still charged for the storage space on a pay-as-you-go basis. If any service is connected to the cluster, the cluster immediately starts. Note
You cannot set 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 it on the cluster details page. For instructions, see Set automatic start for or manually start a serverless cluster. |
|
Storage Type |
Note
|
Step 2: Advanced options (optional)
The advanced options include the cluster name, resource group, and database table name case-sensitivity.
|
Parameter |
Description |
|
Cluster Name |
|
|
Resource Group |
Select a target resource group from the resource groups that you created. For instructions, see Create a resource group. 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 details, see Manage permissions with resource groups. |
|
Time Zone |
Set the cluster time zone. The default time zone is UTC+08:00. |
|
Table name case-sensitivity |
Set whether cluster table names are case-sensitive.
Note
|
Step 3: Confirm the order
Confirm the overall cluster configuration and specify the purchase quantity. Make sure that all settings meet your requirements.
-
Review the selected configurations.
-
Specify the cluster Quantity. The default value is 1.
NoteYou can create up to 50 clusters at a time, which suits use cases such as batch game server launches.
-
Read the Product Terms of Service, the Service Level Agreement (SLA), and the product-specific terms that you selected on this page, if any.
-
If you have no questions, click Buy Now.
After the purchase is complete, it takes 10 to 15 minutes to create the cluster. You can then view the new cluster in the cluster list.
Note-
When the cluster status is Creating, the cluster may not be fully created and is unavailable. You can use the cluster only when its status is Running.
-
Make sure that you selected the correct region. Otherwise, you cannot view the cluster that you created.
-