This topic describes how to create a serverless cluster. When you create a serverless cluster, you do not specify the exact specifications for the compute nodes, but the maximum and minimum numbers of read-only nodes in the cluster and of the PCUs per node. The system automatically adjust the number of PCUs of the nodes in the serverless cluster and the number of read-only nodes within the specified range based on the actual workloads.
If you use an existing PolarDB for MySQL cluster, you can enable the serverless feature for the cluster. For more information, see Enable the serverless feature for a cluster with defined specifications.
If you use other database services and want to use the serverless feature, you can use Data Transmission Service (DTS) to migrate data from your existing database services to a new serverless cluster. For more information, see Overview.
Prerequisites
An Alibaba Cloud account is created and used to log on to the PolarDB console. For more information, see Register and log on to an Alibaba Cloud account.
Step 1: Configure basic settings
In this step, you can configure the basic parameters and resources that are required to create a cluster. The basic parameters include Billing Method, Region, and Zone. The basic resources include the database engine and scaling range of resources.
Parameter | Description |
Billing Method | Serverless |
Region | Select a region that is close to your geographical location to reduce network latency. After a cluster is created, you cannot change the region of the cluster. For more information, see Regions and zones. Note Make sure that the PolarDB cluster and the Elastic Compute Service (ECS) instance to which you want to connect are deployed in the same region. Otherwise, the PolarDB cluster and the ECS instance can communicate only over the Internet, which degrades cluster performance. |
Creation Method | Create Primary Cluster |
Database Engine | Select a MySQL engine version. For more information about the engine versions, see Features in PolarDB for MySQL 5.6, 5.7, and 8.0.
|
Database Edition | Select a database edition. For more information about the database editions, see Differences between Enterprise Edition and Standard Edition.
|
Primary Zone | The zone in which the new cluster is deployed. A zone is a geographically isolated location within a region. All zones in a region provide the same level of service performance. Note
|
Network Type | Configure the virtual private cloud (VPC) and vSwitch.
Note Make sure that the PolarDB cluster is created in the same virtual private cloud (VPC) as the ECS instance to which you want to connect. Otherwise, the cluster and the Elastic Compute Service (ECS) instance cannot communicate over the internal network to achieve 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 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 the Detection Period for No-activity Suspension parameter on the buy page. By default, the detection period is set to 60 minutes. After the purchase, you can modify this parameter in the cluster details page. For more information, see Set automatic start for or manually start a serverless cluster. |
Storage Type |
Note You cannot change the storage type of an existing cluster. If you want to change the storage type, you need to create a new cluster with the desired storage type and then migrate data to the new cluster. |
Step 2: Advanced options (Optional)
Advanced options include the cluster name, resource group, and case sensitivity of table names.
Parameter | Description |
Cluster Name |
|
Resource Group | Select a resource group from the drop-down list. For more information, see Create a resource group. Note A resource group is a group of relevant resources that belong to an Alibaba Cloud account. Resource groups allow you to manage resources in a centralized manner. A resource belongs to only one resource group. For more information, see Classify resources into resource groups and grant permissions on the resource groups. |
Time Zone | The time zone of the cluster. The default value is UTC +08:00. |
Table Name | Specifies whether table names in the cluster are case-sensitive.
Note
|
Step 3: Confirm the order
Before the cluster is created, make sure that the selected configurations, such as the quantity, meet your requirements.
Check the configurations.
The default value of Quantity is 1.
NoteYou can create a maximum of 50 clusters at a time. This allows you to create multiple clusters in specific scenarios such as deploying multiple game servers at a time.
Read the terms of service, service level agreement, and specific terms of services that you select on this page.
Click Buy Now.
After you complete the payment, wait 10 to 15 minutes. Then, you can view the newly created cluster on the Clusters page.
NoteIf some nodes in the cluster are in the Creating state, the cluster is still being created and is unavailable. The cluster is available only when the cluster is in the Running state.
Make sure that you select the region in which the cluster is deployed when you view the cluster. Otherwise, the cluster is not displayed.