This topic describes how to quickly create an ApsaraDB for Redis instance.
If you want to create an instance for use in a production environment, you can refer to Instructions for selecting an appropriate ApsaraDB for Redis instance to select the instance specifications that meet your business requirements. You can use the examples in this topic to quickly get started with ApsaraDB for Redis. In the examples, only key parameters are configured to create an ApsaraDB for Redis instance.
Prerequisites
An Alibaba Cloud account is created. For more information, see Create an account.
Procedure
ApsaraDB for Redis Community Edition
In this example, a standard instance that runs Redis 6.0 is created. The instance consists of a master node and a replica node and has a memory of 1 GB.
Go to the ApsaraDB for Redis buy page and set the Service parameter to Redis.
Configure the Billing Method parameter.
Subscription: You must pay upfront for the instance that you create. For long-term use, the subscription billing method is more cost-effective than the pay-as-you-go billing method. Alibaba Cloud provides lower prices for longer subscription durations.
Pay-as-you-go: You are charged on an hourly basis after you create the instance. This billing method is suitable for short-term use. If you no longer require a pay-as-you-go instance, you can release the instance to reduce costs.
NoteYou can view the price in the lower-right corner of the page. The final price is determined after the configuration is complete.
Configure the Region and Primary Zone parameters.
If you created an Elastic Compute Service (ECS) instance, we recommend that you select the region and zone in which the ECS instance resides.
If you want to use a local device to connect to the ApsaraDB for Redis instance, select the nearest region.
Select a virtual private cloud (VPC) and a vSwitch.
If you want to connect an ECS instance to the ApsaraDB for Redis instance, select the same VPC as the ECS instance. If you select a different VPC, the ECS instance and the ApsaraDB for Redis instance cannot communicate over an internal network. If the instances share the same VPC but have different vSwitches, the instances can communicate over the internal network.
Set the Version parameter to Redis 6.0. You can use the default values for other parameters.
Set the Set Password parameter to Now and enter a password.
After the instance is created, you can reset or change the password in the console.
(Optional) If you set the Billing Method parameter to Subscription, configure the Validity Period parameter.
Configure the Quantity parameter. Default value: 1.
Click Buy Now.
On the Confirm Order page, read and select the terms of service, and then follow the instructions to complete the payment for the instance.
After you complete the payment, wait for 1 minute to 5 minutes. To view the created instance, select the region in which the instance resides on the Instances page of the ApsaraDB for Redis console.
Tair
In this example, a Tair DRAM-based standard instance that is compatible with Redis 6.0 and has a memory of 1 GB is created. The instance consists of a master node and a replica node.
Go to the Tair buy page and set the Service parameter to Tair.
Configure the Billing Method parameter.
Subscription: You must pay upfront for the instance that you create. For long-term use, the subscription billing method is more cost-effective than the pay-as-you-go billing method. Alibaba Cloud provides lower prices for longer subscription durations.
Pay-as-you-go: You are charged on an hourly basis after you create the instance. This billing method is suitable for short-term use. If you no longer require a pay-as-you-go instance, you can release the instance to reduce costs.
NoteYou can view the price in the lower-right corner of the page. The final price is determined after the configuration is complete.
Set the Storage Type parameter to Memory.
Configure the Region and Primary Zone parameters.
If you created an ECS instance, we recommend that you select the region and zone in which the ECS instance resides.
If you want to use a local device to connect to the Tair instance, select the nearest region.
Select a VPC and a vSwitch.
If you want to connect an ECS instance to the ApsaraDB for Redis instance, select the same VPC as the ECS instance. If you select a different VPC, the ECS instance and the ApsaraDB for Redis instance cannot communicate over an internal network. If the instances share the same VPC but have different vSwitches, the instances can communicate over the internal network.
Set the Version parameter to Redis 6.0. You can use the default values for other parameters.
Set the Password Setting parameter to Set Now and enter a password.
(Optional) If you set the Billing Method parameter to Subscription, configure the Subscription Duration parameter.
Configure the Quantity parameter. Default value: 1.
Click Buy Now.
On the Confirm Order page, read and select the terms of service, and then follow the instructions to complete the payment for the instance.
After you complete the payment, wait for 1 minute to 5 minutes. To view the created Tair instance, select the region in which the instance resides on the Instances page of the ApsaraDB for Redis console.
Then, configure an IP address whitelist for the instance. For more information, see Step 2: Configure whitelists.
References
If you want to create an instance of another architecture or type, you can configure the parameters as prompted in the console. For information about the parameters, see Terms.
FAQ
How long does it take to create an instance?
The time required to create an instance is directly proportional to the number of shards in the instance. A larger number of shards requires more resources. As a result, the time required to create the instance increases. For example, it can take 2 to 3 minutes to create a standard master-replica instance, 10 to 15 minutes to create a 128-shard cluster master-replica instance, and 20 to 40 minutes to create a 256-shard cluster master-replica instance.
Why am I unable to find the created instance?
The following table describes the possible causes and solutions.
Possible cause
Solution
The region that you selected in the ApsaraDB for Redis console is not the region in which the instance is deployed.
Log on to the ApsaraDB for Redis console and select the region in which the instance is deployed.
The instance list in the ApsaraDB for Redis console is not updated or is updated before the instance is created.
Wait for a few minutes and refresh the instance list to check whether the instance is displayed in the list.Redis
Why am I refunded for an order placed to purchase an instance?
The system may fail to create the instance due to insufficient resources. In this case, your payment is refunded. You can check your refund on the Orders page. After you confirm that the payment is refunded, you can attempt to create an instance in another zone.
How do I view the creation time of an instance?
On the Instances page, click the icon. In the Customize Columns dialog box, select Created At and click OK. You can view the value in the Created At column corresponding to the instance in the instance list.
Related API operations
API operation | Description |
Creates an ApsaraDB for Redis Community Edition instance or a Tair DRAM-based classic instance. | |
Creates a Tair cloud-native instance. |