TraceNature / redissyncer-server

RedisSyncer是一个多任务的redis数据同步工具,可灵活的满足Redis间的数据同步、迁移需求; redissyncer is a redis synchronization tool, used in redis single instance and cluster synchronization
https://github.com/TraceNature/redissyncer-server
Apache License 2.0
639 stars 104 forks source link

3.3.3版本在内网复制验证过程中,发现同步延迟固定3s,请问是为什么呢?有什么配置参数可以调整么? #86

Closed chenruiyingry closed 2 years ago

pingxingshikong commented 2 years ago

因为是通过pipeline批量写入的,没有达到提交key的数量的话会每3s写入,这个参数目前没有暴露出来,可以修改下代码里的写入间隔或者每个批次的提交count,重新编译一下就可以了 https://github.com/TraceNature/redissyncer-server/blob/main/syncer-transmission/src/main/java/syncer/transmission/client/impl/JedisPipeLineClient.java

chenruiyingry commented 2 years ago

好的,谢谢