redis / riot

🧨 Get data in & out of Redis with RIOT

Home Page:http://redis.github.io/riot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replication hangs without any errors

olsh opened this issue · 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?

Any comments for this question

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.