Replication hangs without any errors
olsh opened this issue · 2 comments
olsh commented
I'm trying to run a replication with the following parameters.
docker run fieldengineering/riot-redis -h source_ip -p 6381 -n 14 replicate -h target_ip -p 6379 -n 14 -a password --mode live
The source DB has ~89 million keys. The target DB is empty.
The replication hangs randomly without any errors. Sometimes it hangs on 50%, sometimes on 90%.
Is there any log-level switch for the replication or debug mode?
leonsr07 commented
Any comments for this question
ervinb commented
You can use the -d
flag, but it's extremely verbose.
I've encountered random hangs as well, and it turned out it was because of the lack of memory on the host where riot was running. An error is logged actually, but as the tool logs to the same line, and it sometimes hides/overwrites it. In this case using --progress log
helps, as each change is printed onto a new line.