Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How redis migrates data using redis-shake

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

How does redis use redis-shake to migrate data? To solve this problem, today the editor summarizes this article about using redis-shake tools to migrate data, hoping to help more friends who want to solve this problem to find a more simple and easy way.

Restore operation

1. Download the backup data to the redis-shake peer directory, as shown in the figure

2. Modify the redis-shake.conf configuration and modify these items:

(for more information, please refer to https://help.aliyun.com/document_detail/116378.html?spm=5176.11065259.1996646101.searchclickresult.74f05fe2CkrEwz)

Rdb.input 、 target.address 、 target.password_raw 、 rewrite 、 parallel

3. Just execute the order.

. / redis-shake.linux64-type=restore-conf=redis-shake.conf

Remarks: none. During the import process, the cpu pressure on the destination redis will be relatively high, so you should pay attention to it.

Synchronous operation

1. Modify the redis-shake.conf configuration and modify these items:

Reference link 1: https://help.aliyun.com/document_detail/97027.html?spm=a2c4g.11174283.6.683.6169dce0vFE7rY

Reference link 2: https://help.aliyun.com/document_detail/117311.html?spm=a2c4g.11186623.2.16.13835957U62eVS#concept-226440

2. Just execute the command.

. / redis-shake.linux64-type=sync-conf=redis-shake.conf

Note: in the process of synchronization, there is little pressure on the source redis and relatively high pressure on the destination redis.

The above description is the method of using redis-shake tools to migrate data, and the specific usage needs to be used by everyone in order to understand it. If you want to know more about it, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report