riot icon indicating copy to clipboard operation
riot copied to clipboard

Replication hangs without any errors

Open olsh opened this issue 2 years ago • 2 comments

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?

olsh avatar May 02 '23 09:05 olsh

Any comments for this question

leonsr07 avatar May 17 '23 21:05 leonsr07

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.

ervinb avatar Jul 14 '23 14:07 ervinb