Skip to content
프로젝트

소개

RedisShake는 Valkey/Redis 데이터를 처리하고 마이그레이션하는 도구입니다.

데이터 및 분석

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
+4

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

RedisShake: Redis Data Transformation and Migration Tool

CI Website Release ghcr.io

RedisShake Architecture

Overview

RedisShake is a powerful tool for Redis data transformation and migration, offering:

  1. Zero Downtime Migration: Enables seamless data migration without data loss or service interruption, ensuring continuous operation during the transfer process.

  2. Valkey/Redis Compatibility: Supports Redis (2.8 to 8.12.x) and Valkey (8.x to 9.2.x) across standalone, master–slave, sentinel, and cluster deployments. See Version Compatibility for detailed feature support.

  3. Cloud Service Integration: Seamlessly works with Redis-like databases from major cloud providers:

  4. Module Support: Compatible with TairString, TairZSet, and TairHash.

  5. Flexible Data Source: Supports PSync, RDB, AOF, and Scan data fetch methods.

  6. Advanced Data Processing: Enables custom script-based data transformation and easy-to-use data filter rules.

How to Get RedisShake

For Humans

  1. Download from Releases.

  2. Use Docker:

docker run --network host \
    -e SYNC=true \
    -e SHAKE_SRC_ADDRESS=127.0.0.1:6379 \
    -e SHAKE_DST_ADDRESS=127.0.0.1:6380 \
    ghcr.io/tair-opensource/redisshake:latest
  1. Build it yourself:

Prerequisite: Go must be installed and available in your system before running the build script.

git clone https://github.com/tair-opensource/RedisShake
cd RedisShake
sh build.sh

For LLM Agents

RedisShake publishes machine-readable documentation following the llms.txt standard, generated directly from the official docs:

  • Documentation index: https://tair-opensource.github.io/RedisShake/llms.txt
  • Full single-file docs (English): https://tair-opensource.github.io/RedisShake/llms-full.txt
  • Full single-file docs (Chinese): https://tair-opensource.github.io/RedisShake/llms-full-zh.txt
  • Per-page Markdown: append .md to any docs page URL.

How to Use RedisShake

To move data between two Redis instances and skip some keys:

  1. Make a file called shake.toml with these settings:
[sync_reader]
address = "127.0.0.1:6379"

[redis_writer]
address = "127.0.0.1:6380"

[filter]
# skip keys with "temp:" or "cache:" prefix
block_key_prefix = ["temp:", "cache:"] 
  1. Run RedisShake:
./redis-shake shake.toml

For more help, check the docs.

Limitations

Resumable Transfer (Checkpoint) is NOT Supported: RedisShake 4.x does not support resumable transfer. Unlike commercial solutions such as Alibaba Cloud DTS or Tair Global Active-Active which can resume from the last checkpoint after interruption, RedisShake will perform a full resync from the beginning when restarted.

Cluster Topology Change Awareness is NOT Supported: RedisShake assumes a static cluster topology. Any topology changes (such as scaling, failover, or slot migration) will cause the process to panic. Combined with the lack of checkpoint support, RedisShake is best suited for one-time data migration scenarios, not for long-term continuous synchronization.

Cross-Version Migration

Before migrating data between different major versions of Redis, we recommend using the resp-compatibility tool for a compatibility check and consulting the compatibility report to avoid known breaking changes and bugs.

History

RedisShake, actively maintained by the Tair team at Alibaba Cloud, evolved from redis-port. Key milestones:

  • RedisShake 2.x: Improved stability and performance.
  • RedisShake 3.x: Complete codebase rewrite, enhancing efficiency and usability.
  • RedisShake 4.x: Enhanced readers, configuration, observability, and functions.

License

RedisShake is open-sourced under the MIT license.

관련 프로젝트 살펴보기

불러오는 중…