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.
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笔记.
Pika-port 把自已伪装成 pika 的 slave, 通过 trysync 先把数据全量同步给 pika/redis,然后再进行增量通过。
大致流程:
- 1 发送 trysync 全量同步命令 -> 接收 dump 数据 -> 解析 dump 数据 -> 过滤 -> 发送给 pika/redis;
- 2 发送 trysync 增量同步命令 -> 接收 binlog -> 解析 binlog 数据 -> 过滤 -> 发送给 pika/redis;
sh build2.sh
sh build3.sh