Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replication hangs without any errors #108

Open
olsh opened this issue May 2, 2023 · 2 comments
Open

Replication hangs without any errors #108

olsh opened this issue May 2, 2023 · 2 comments

Comments

@olsh
Copy link

olsh commented May 2, 2023

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
Copy link

Any comments for this question

@ervinb
Copy link

ervinb commented Jul 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants