This topic describes how to quickly create a Tair (Redis OSS-compatible) instance.
If you want to create an instance for use in a production environment, you can refer to Instructions for selecting an appropriate Tair (Redis OSS-compatible) instance to select the instance specifications that meet your business requirements. You can use the examples in this topic to quickly get started with Tair (Redis OSS-compatible). In the examples, only key parameters are configured to create an instance.
Prerequisites
An Alibaba Cloud account is created. For more information, see Create an account.
Procedure
Redis Open-Source Edition
In this example, a standard Redis Open-Source Edition 6.0 instance is created. The instance consists of a master node and a replica node and has a memory of 1 GB.
This example describes only the key parameters. You can use the default values for other parameters.
Go to the Redis Open-Source Edition buy page and set the Service parameter to Redis Open-Source Edition.
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.
You 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 Redis Open-Source Edition instance, select the nearest region.
Select a virtual private cloud (VPC) and a vSwitch.
If you want to connect an ECS instance to the Redis Open-Source Edition instance, select the same VPC as the ECS instance. If you select a different VPC, the ECS instance and the Redis Open-Source Edition 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.
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 console.
Tair (Enterprise Edition)
In this example, a standard Tair DRAM-based 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.
This example describes only the key parameters. You can use the default values for other parameters.
Go to the Tair (Enterprise Edition) buy page and set the Service parameter to Tair (Enterprise Edition).
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.
You 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 (Enterprise Edition) instance, select the nearest region.
Select a VPC and a vSwitch.
If you want to connect an ECS instance to the Tair (Enterprise Edition) instance, select the same VPC as the ECS instance. If you select a different VPC, the ECS instance and the Tair (Enterprise Edition) 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.
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 instance, select the region in which the instance resides on the Instances page of the 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 console is not the region in which the instance is deployed.
Log on to the console and select the region in which the instance is deployed.
The instance list in the 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.
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 a Redis Open-Source Edition instance or a classic Tair DRAM-based instance. | |
Creates a Tair cloud-native instance. |