All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Clone data from a Redis Open-Source Edition 2.8 instance to a Redis Open-Source Edition 5.0 instance

Last Updated:Dec 02, 2024

Redis Open-Source Edition 2.8 instances can be directly upgraded to Redis Open-Source Edition 5.0 instances. However, if you want to validate the upgrade against your current business logic in Redis Open-Source Edition 5.0, you can refer to this topic to clone the backup data of a Redis Open-Source Edition 2.8 instance to a new Redis Open-Source Edition 5.0 instance.

Background information

With the development of Redis Open-Source Edition and advancements in open source Redis technology, the Redis open source community no longer maintains Redis 2.8. Starting July 31, 2024, Tair (Redis OSS-compatible) discontinues full support for Redis Open-Source Edition 2.8 instances. If you continue to use Redis Open-Source Edition 2.8 after July 31, 2024, significant risks may occur.

Note

Given the same specifications and architecture, the cost of a Redis Open-Source Edition 5.0 instance is the same as that of a Redis Open-Source Edition 2.8 instance.

Procedure

  1. Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click its ID.

  2. In the left-side navigation pane, click Backup and Restoration.

  3. Clone the instance based on the instance architecture.

    Non-cluster architecture

    Find the backup set that you want to use. In most cases, the latest backup set is used. Then, click Restore in the Action column.

    Cluster architecture

    If the instance uses the cluster architecture, select the backup sets of all shards of the instance. For example, if you have a cluster instance that has four shards, you must select the following backup sets:

    • r-bp1vhgd6dzgu89****-db-0

    • r-bp1vhgd6dzgu89****-db-1

    • r-bp1vhgd6dzgu89****-db-2

    • r-bp1vhgd6dzgu89****-db-3

    Then, click Restore in the upper-left corner.

  4. In the message that appears, read the prompt and click OK.

  5. On the Clone Instance page, configure the required parameters. The parameters displayed in the console prevail.

    • Set the Version parameter to Redis 5.0.

      Note

      You can also select a Tair (Enterprise Edition) DRAM-based instance, which delivers performance three times that of a Redis Open-Source Edition instance that has the same specifications.

    • The new instance specifications must be greater than or equal to the original instance specifications.

    Use the default values for other parameters.

  6. Read and select the Tair terms of service.

  7. Click Buy Now.

    After you complete the payment, wait for 1 minute to 5 minutes. Then, you can view the new instance created based on the data of the Redis Open-Source Edition 2.8 instance in the console.

What to do next

  • After the instance is cloned, you can migrate your business to the new instance. You only need to add the IP address of your client to a whitelist of the new instance and update the endpoint in the code. For more information, see Configure whitelists and View endpoints.

  • You can also release the new instance and directly upgrade the major version of the original Redis Open-Source Edition instance from 2.8 to 5.0. For more information, see Release pay-as-you-go instances. After the upgrade, the instance ID, endpoints, data, and whitelist settings remain unchanged. For more information, see Upgrade the major version.

References