This topic describes how to create a pay-as-you-go ApsaraDB for SelectDB instance. This helps you quickly get started with SelectDB.
Before you begin
If you are not familiar with SelectDB, we recommend that you read service overview for beginners to learn the features, terms, and billing of SelectDB.
Usage notes
If you want to create a pay-as-you-go SelectDB instance, make sure that your Alibaba Cloud account has sufficient balance.
A SelectDB instance can contain one or more backend (BE) clusters. When you create a SelectDB instance, the system automatically creates a cluster that uses the same billing method as the SelectDB instance. If a cluster scale-out is required, you can create more clusters for the SelectDB instance.
Step 1: Prepare an Alibaba Cloud account
Create an Alibaba Cloud account.
If you have created an Alibaba Cloud account and activated Application Real-Time Monitoring Service (ARMS), skip this step.
Visit the Alibaba Cloud official website and create an Alibaba Cloud account.
Activate ARMS. For more information, see Activate ARMS.
Recommended. Create a Resource Access Management (RAM) user.
ImportantAn Alibaba Cloud account has the highest permissions. To prevent multiple users from sharing the password or AccessKey pair of the Alibaba Cloud account, we recommend that you create a RAM user and assign the minimum permissions to the RAM user based on your business requirements. This reduces security risks for your enterprise. For more information, see Overview of RAM users.
If you need to use your Alibaba Cloud account to perform the required operations or you have created a RAM user with the required permissions granted, skip this step.
Create a RAM user. For more information, see Create a RAM user.
Attach the AliyunSelectDBFullAccess policy to the RAM user. This policy grants full permissions on SelectDB. For more information about how to grant permissions to a RAM user, see Grant permissions to a RAM user.
Step 2: Create an instance
SelectDB supports the pay-as-you-go and subscription billing methods. Select a billing method based on your business requirements.
Pay-as-you-go: Select this billing method if you want to use or try a SelectDB instance for a short period of time. You can release the instance at any time to stop billing.
Subscription: Select this billing method if you want to use a SelectDB instance for a long period of time. The expense is lower than that of the pay-as-you-go billing method.
NoteYou can change the billing method of a SelectDB instance from pay-as-you-go to subscription but cannot change the billing method from subscription to pay-as-you-go.
In this example, a pay-as-you-go SelectDB instance is created. The configuration includes only the core parameters. For more information about how to create a subscription SelectDB instance or the detailed parameters, see Create an instance.
Procedure:
Go to the buy page of a pay-as-you-go SelectDB instance.
Configure the Region and Zone parameter.
Select a proper region and zone to improve the speed of accessing the SelectDB instance. A shorter distance between the geographical location of your business and the region in which the SelectDB instance resides promises a faster access speed.
ImportantAfter the SelectDB instance is created, you cannot change the region of the instance. Exercise caution when you configure this parameter. If your business is deployed on Alibaba Cloud, we recommend that you select the same region as your business.
Configure the VPC parameter.
A virtual private cloud (VPC) is an exclusive virtual network on Alibaba Cloud. It is a regional resource. A VPC cannot be deployed across regions but covers all zones in a region.
If no VPC is available within your account, go to the VPC console to create one.
ImportantAfter the SelectDB instance is created, you cannot change the VPC of the instance. Exercise caution when you configure this parameter. If your business is deployed on Alibaba Cloud, we recommend that you select the same VPC as your business.
Configure the vSwitch parameter.
A vSwitch is a basic network device in a VPC and is used to connect cloud resources.
If no vSwitch is available, go to the VPC console to create one.
Configure the Kernel Version parameter.
You can select a stable or the latest kernel version on the buy page. By default, the stable version is selected. We recommend that you retain the default setting if you do not have special requirements.
For more information about the mapping between the kernel versions of SelectDB and the versions of
Apache Doris
, see Release notes for SelectDB Core.Configure the Computing Resources parameter.
The performance and costs of computing resources are linearly related to the specifications of the computing resources. You can select appropriate computing resources to reduce costs and improve business stability. The default instance type on the buy page provides 8 vCPUs and 32 GB memory.
When you create a pay-as-you-go instance, the system creates a pay-as-you-go cluster in the instance by default. The default cluster uses the computing resources specified by this parameter.
Configure the Cache Size parameter.
The cache is used to store hot data, which accelerates read and write operations of the SelectDB instance. The upper and lower limits of the cache size vary based on the specifications of computing resources that you select.
When you create a pay-as-you-go instance, the system creates a pay-as-you-go cluster in the instance by default. The default cluster uses the cache size specified by this parameter.
Configure the Storage Space parameter.
If you create a pay-as-you-go instance, you do not need to configure this parameter.
The storage space is used to store full data. The metering system counts the amount of data stored in an instance on an hourly basis. The corresponding fees are deducted from your account based on the actual hourly usage.
Optional. Configure the Resource Group parameter.
Alibaba Cloud allows you to sort resources owned by your Alibaba Cloud account into resource groups. This simplifies resource and permission management within your Alibaba Cloud account. For more information, see What is Resource Group?
Optional. Configure the Tag parameter.
Tags allow you to categorize, search for, and aggregate cloud resources that have the same characteristics from different dimensions. This facilitates resource management. For more information, see What is Tag?
Click Buy Now and follow the instructions to complete the payment.
It takes approximately 10 to 15 minutes to create an instance. You can refresh the Instances page to check whether the SelectDB instance is created.
What to do next
Step 2: Connect to an ApsaraDB for SelectDB instance and create a database and a table
References
Call the CreateDBInstance operation to create a SelectDB instance.
Create a subscription SelectDB instance or learn the detailed parameters by following instructions provided in Create an instance.