tools/codis2pika/README_en.md
codis2pika is a tool for migrating data from Codis to Pika. Its main purpose is to support migrating from Codis sharding mode to Pika classic mode.
codis2pika is inspired by and based on the open-source redis-shake project from Alibaba, with customized modifications. Therefore, the basic feature set is consistent with the original tool, but there are functional differences.
Features shared with the original:
Features specific to codis2pika:
Release: https://github.com/GetuiLaboratory/codis2pika/releases
After downloading the source code, run sh build.sh to compile.
sh build.sh
codis2pika.toml and modify the source and target configuration items../bin/codis2pika codis2pika.toml
Refer to codis2pika.toml for the configuration file. To avoid ambiguity, every configuration item in the file is required to have a value; otherwise an error will be reported.
codis2pika supports custom filtering rules using Lua scripts to filter data. When using a Lua script, start codis2pika with:
./bin/codis2pika codis2pika.toml filter/xxx.lua
The Lua data filtering feature has not been verified. If needed, please refer to the redis-shake project.
client-output-buffer-limit configured to remove restrictions; otherwise the connection will be dropped.It is recommended to configure a monitoring dashboard in advance to have a visual overview of the migration process.
It is recommended to use Alibaba's open-source redis-full-check tool.