All Products
Search
Document Center

ApsaraDB for Redis:Step 1: Create an ApsaraDB for Redis instance

Last Updated:Jul 05, 2024

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.

  1. Go to the ApsaraDB for Redis buy page and set the Product Type parameter to Redis (Cloud Disk).

  2. Configure the Billing Method parameter.

    • Subscription: You must pay upfront for the instances 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.

    Note

    You can view the price in the lower-right corner of the page. The final price is determined after the configuration is complete.

  3. 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 instance, select the nearest region.

  4. Select a virtual private cloud (VPC) and a vSwitch.

    If you want to connect an ECS instance to the Redis instance, select the same VPC as the ECS instance. If you select a different VPC, the ECS instance and the 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.

  5. Set the Version parameter to Redis 6.0. You can use the default values for other parameters.

  6. 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.

  7. (Optional) If you set the Billing Method parameter to Subscription, configure the Validity Period parameter.

  8. Configure the Quantity parameter. Default value: 1.

  9. 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.

  1. Go to the Tair buy page and set the Product Type parameter to Tair (Cloud Disk).

  2. Configure the Billing Method parameter.

    • Subscription: You must pay upfront for the instances 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.

    Note

    You can view the price in the lower-right corner of the page. The final price is determined after the configuration is complete.

  3. Set the Storage Type parameter to Memory.

  4. 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.

  5. Select a VPC and a vSwitch.

    If you want to connect an ECS instance to the Redis instance, select the same VPC as the ECS instance. If you select a different VPC, the ECS instance and the 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.

  6. Set the Version parameter to Redis 6.0. You can use the default values for other parameters.

  7. Set the Password Setting parameter to Set Now and enter a password.

  8. (Optional) If you set the Billing Method parameter to Subscription, configure the Subscription Duration parameter.

  9. Configure the Quantity parameter. Default value: 1.

  10. 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.

  • 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 image 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

CreateInstance

Creates an ApsaraDB for Redis Community Edition instance or a classic Tair DRAM-based instance.

CreateTairInstance

Creates a Tair cloud disk-based instance.