CodisLabs/redis-port

2.8.8单节点redis 迁移到codis 3.2集群 报错

Zatomsmasher opened this issue · 0 comments

使用redis-4.x-cgo分支
已配置:
condig set repl-backlog-size 2147483648
config set client-output-buffer-limit "slave 0 0 0"
启动命令为:
nohup bin/redis-sync --tmpfile=sock.tmp --tmpfile-size=50g --ncpu=4 -m 192.168.3.14:6342 -t 192.168.3.20:19000 > sync.log 2>&1 &
程序开始运行正常 大概同步3000w keys 后 报错:
2018/10/26 11:42:25 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5557827888/30122156,0/0,0) ~ (5.18gb/-,-/-,-) ~ speed=(10.25mb/61065,0/0,0)
2018/10/26 11:42:26 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5569755440/30189791,0/0,0) ~ (5.19gb/-,-/-,-) ~ speed=(11.38mb/67635,0/0,0)
2018/10/26 11:42:27 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5581682992/30258144,0/0,0) ~ (5.20gb/-,-/-,-) ~ speed=(11.38mb/68353,0/0,0)
2018/10/26 11:42:28 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5594134832/30328241,0/0,0) ~ (5.21gb/-,-/-,-) ~ speed=(11.88mb/70097,0/0,0)
2018/10/26 11:42:29 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5606455600/30397998,0/0,0) ~ (5.22gb/-,-/-,-) ~ speed=(11.75mb/69757,0/0,0)
2018/10/26 11:42:30 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5618907440/30467557,0/0,0) ~ (5.23gb/-,-/-,-) ~ speed=(11.88mb/69559,0/0,0)
2018/10/26 11:42:31 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5630703920/30534782,0/0,0) ~ (5.24gb/-,-/-,-) ~ speed=(11.25mb/67225,0/0,0)
2018/10/26 11:42:32 sync.go:250: [INFO] sync: rdb = 5641051796 - [100.00%] (r/f,s/f,s)=(5658097965/30593409,0/24448,0) ~ (5.27gb/-,-/-,-) ~ speed=(26.12mb/58627,0/24448,0)
2018/10/26 11:42:33 libs.go:279: [PANIC] copy bytes failed, EOF
[stack]:
0 /usr/local/druid/gopath/src/github.com/CodisLabs/redis-port/cmd/libs.go:279
main.ioCopyBuffer
... ...