ApsaraDB for SelectDB instances isolate computing capacity at the cluster level. Multiple clusters of an instance can be used to handle different workloads, such as data reading and writing, to meet the performance and usage duration requirements of different services. This topic describes how to create a cluster in an ApsaraDB for SelectDB instance.
Prerequisites
An Alibaba Cloud account is created. If you have not created an Alibaba Cloud account, go to the Alibaba Cloud official website to create one.
The AliyunSelectDBFullAccess policy of ApsaraDB for SelectDB is attached to a Resource Access Management (RAM) user if you want to create a cluster as the RAM user. For more information, see Grant permissions to a RAM user.
An ApsaraDB for SelectDB instance is created.
The balance of your Alibaba Cloud account is sufficient if you want to create a pay-as-you-go cluster.
After you create a cluster in your ApsaraDB for SelectDB instance, the cluster is associated with an address that can be used to access the cluster by using a virtual private cloud (VPC) and the 8040 and 8060 ports are enabled for the cluster. This facilitates HTTP operations such as data import by using Stream Load and metric capturing. The address associated with the cluster is restricted by the whitelist mechanism. If you want to use the address to access the cluster in your ApsaraDB for SelectDB instance, make sure that the IP address of the client is added to the IP address whitelist of the ApsaraDB for SelectDB instance. For more information, see Configure an IP address whitelist.
Billing
Create a cluster in a subscription instance
Cluster billing method | Billing rule |
Subscription | Fees for a new subscription cluster = Monthly fee for a cluster with the same specification × (Remaining days until expiration/30). For more information, see Billable items and pricing. Note The remaining days until expiration are a decimal value, precise to 12 places. For example, 31 days and 10 hours is calculated as 31.416666666667 days. |
Pay-as-you-go | Fees for a new pay-as-you-go cluster = Sum of the hourly fees for the cluster. For more information, see Billable items and pricing. |
Create a cluster in a pay-as-you-go instance
You are billed each hour for the cluster. For more information, see Billable items and pricing.
Procedure
Log on to the ApsaraDB for SelectDB console.
In the top navigation bar, select the region in which the instance that you want to manage resides.
In the left-side navigation pane, click Instances. On the Instances page, find the instance and click the instance ID. The Instance Details page appears.
In the left-side pane of the Instance Details page, click Cluster Management.
On the page that appears, click Create Cluster.
In the Create Cluster panel, configure the parameters that are described in the following table.
Parameter
Description
Instance
The instance to which the cluster belongs. This value is fixed and cannot be modified.
Cluster Name
The name of the cluster. Set a name for the cluster based on the following rules:
The name must be unique.
The name must start with a letter, which is not case-sensitive.
The name can contain letters, digits, and underscores (_).
The name can be up to 64 characters in length.
Billing Method
The billing method of the cluster. Valid values:
Subscription: This billing method is suitable for long-term use. The subscription billing method is more cost-effective than the pay-as-you-go billing method. You can receive larger discounts for longer subscription durations.
Pay-As-You-Go: This billing method is suitable for short-term use, such as testing. You can delete the cluster to reduce costs if you no longer user the cluster.
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 computing resources of the cluster, including vCPUs and memory.
The number of vCPUs in each cluster ranges from
4 to 1,024.By default, the memory size is four times the number of vCPUs. Unit: GB.
Important1 CCU equals 1 vCPU and 4 GB of memory.
If you want to increase the quota, contact Alibaba Cloud technical support.
Cache Size per Node (GB)
The size of the cache that is used to store hot data, which accelerates read and write operations.
The upper and lower limits of the cache size vary based on the specifications of computing resources that you select.
Valid values:
Minimum value:
For clusters with 4, 8, 16, or 32 CPU cores, the minimum cache size is 100 GB.
[50 times the number of vCPUs of the cluster, 500 times the number of vCPUs of the cluster].For clusters with 64 or more CPU cores, the minimum cache size is calculated as follows: 100 GB × Number of CPU cores/32.
Unit: GB.
Terms of Service
Read and agree to the Terms of Service by selecting the check box.
Click OK and complete the payment as prompted.
NoteIt takes 1 to 10 minutes to create a cluster. Refresh the page to view the creation progress. If the state of the cluster changes from Creating to Running, the cluster is created.