tair-opensource / RedisShake

RedisShake is a Redis data processing and migration tool.

Home Page:https://tair-opensource.github.io/RedisShake/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redisShake 目标端写入的连接是不是没有保活

ntuwang opened this issue · comments

commented

问题描述(Issue Description)

在rdb全量阶段,如果耗时很长,超过了目前端集群的timeout 链接会被kill掉,所以问下是不是没有做目标端的keepalive?

环境信息(Environment)

  • RedisShake 版本4.0.2
  • Redis 源端版本 4.0.14
  • Redis 目的端版本(4.0.14
  • Redis 部署方式cluster

是的

commented

image
目前我是在NewRedisClusterWriter,新起一个协程去处理,麻烦大佬帮忙看看这样是不是对的,或者有没有什么潜在的坑

@ntuwang 有竞争。简单改的话可以 Write 里面加一个锁。

commented

OK 谢大佬