ApsaraDB for SelectDB implements computing power isolation at the cluster level. You can use multiple clusters for different workloads (such as reading and writing data) to meet various business requirements for performance scale and usage duration. This topic describes how to create a cluster in an ApsaraDB for SelectDB instance.
Prerequisites
You have registered an Alibaba Cloud account. If not, go to the Alibaba Cloud website to register.
When you create an instance as a RAM user, the RAM user must have the ApsaraDB for SelectDB AliyunSelectDBFullAccess permission. For more information, see Grant permissions to a RAM user.
You have created an ApsaraDB for SelectDB instance.
If you want to create a pay-as-you-go cluster, make sure that the balance of your Alibaba Cloud account is sufficient.
ApsaraDB for SelectDB After each compute cluster is created in an instance, it is attached to an address that can be used to access the compute cluster within a virtual private cloud (VPC). Ports 8040 and 8060 are opened for HTTP operations such as StreamLoad import and metric scraping. Access to this address is controlled by whitelists. If you need to access the cluster through this address, make sure that you have added the IP address of the access end to the whitelist of the destination instance. For more information about how to configure a whitelist, see Configure a whitelist.
Billing
Create a cluster in a subscription instance
Billing method | Billing description |
Subscription | The fee for creating a subscription cluster = The fee for creating a cluster of the same specification for one month × (The number of days from the day when the cluster is created to the expiration date of the instance/30 days). For more information about pricing, see Billable items and pricing. Note The number of days remaining until the instance expires is accurate to 12 decimal places. For example, if the remaining time is 31 days and 10 hours, it is recorded as 31.416666666667 days. |
Pay-as-you-go | The fee for creating a pay-as-you-go cluster = The hourly fee based on the new cluster configuration. For more information about pricing, see Billable items and pricing. |
Create a cluster in a pay-as-you-go instance
A pay-as-you-go instance is billed in arrears. When you create a cluster in a pay-as-you-go instance, the billing rule remains unchanged, and you are still charged on an hourly basis. For more information about pricing, see Billable items and pricing.
Procedure
Log on to the ApsaraDB for SelectDB console.
In the upper-left corner of the page, select the region where the instance is located.
On the Instances page, click the Instance ID of the target instance to go to the Instance Details page.
In the left-side navigation pane, click Cluster Management.
On the Cluster Management page, click Create Cluster.
In the Create Cluster panel, configure the parameters.
Parameter
Description
Instance
Fixed as the target instance. This parameter cannot be modified.
Cluster Name
The name of the cluster. The following rules apply:
The name must be unique.
The name must start with a letter (case-insensitive).
The name can contain letters (case-insensitive), digits, and underscores (_).
The name can be up to 64 characters in length.
Billing Method
The following billing methods are supported when you create a cluster:
Subscription: This billing method is suitable for long-term requirements. It is more cost-effective than the pay-as-you-go billing method. The longer the subscription duration, the higher the discount.
Pay-as-you-go: This billing method is suitable for short-term requirements, such as during the testing phase. You can delete the cluster immediately after use to save costs.
NoteYou can create subscription or pay-as-you-go clusters in a subscription instance. The expiration time of all subscription clusters is the same as that of the instance.
You can create only pay-as-you-go clusters in a pay-as-you-go instance.
Cluster Computing Resources
The specification of the computing resources that you want to scale for the cluster, including CPU cores and memory resources.
Valid values of CPU cores:
[4 cores, 1024 cores]
Memory: By default, the memory is four times the number of CPU cores. Unit: GB.
ImportantA compute capacity unit (CCU) is equal to the computing power of a CPU core and 4 GB of memory.
If you want to increase the quota, contact Alibaba Cloud technical support.
Cluster Cache Space
The cache space is used to store hot data and accelerate read and write operations.
The upper and lower limits of the cache space are closely related to the cluster computing resource specifications.
Valid values:
Minimum value:
For target computing resources with 4, 8, 16, or 32 CPU cores, the minimum cache space is 100 GB.
For target computing resources with 64 or more CPU cores, the minimum cache space is
100 GB × Number of cores of the selected computing resources/32
.
Maximum value:
500 times the number of cores of the target computing resources
Unit: GB
Service Agreement
Read and select Service Agreement.
Click OK and complete the payment as prompted.
NoteIt takes approximately 1 to 10 minutes to create a cluster. Refresh the page to check the progress. If the cluster status changes from Creating to Running, the cluster is created.