Skip to content

KCacheTeam/pika-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pika-port


Pika-port is used to move data from pika to pika/redis. This repo has been included officially.

!!!Attention: This repo has been moved to Axlgrep/pika-tools/pika-port which is lang-term maintained by Axlgrep.

Intro


Pika-port is like redis-port. it copy a snapshot of pika to pika/redis/codis and then transfer delta data to them. If u wanna get more details of Pika-port, pls read Pika笔记.

Chinese Intro


Pika-port 把自已伪装成 pika 的 slave, 通过 trysync 先把数据全量同步给 pika/redis,然后再进行增量通过。

大致流程:

  • 1 发送 trysync 全量同步命令 -> 接收 dump 数据 -> 解析 dump 数据 -> 过滤 -> 发送给 pika/redis;
  • 2 发送 trysync 增量同步命令 -> 接收 binlog -> 解析 binlog 数据 -> 过滤 -> 发送给 pika/redis;

Use Case


Compilation


pika port for pika 2.3.x

sh build2.sh

pika port for pika 3.0.x

sh build3.sh

About

move data from pika to pika/redis. This repo has been included by pika as offically data migration tool.

Resources

Stars

Watchers

Forks

Packages

No packages published