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

Can RedisShake skip sync all data when start but continue do "forwardCommands" ? #123

Closed
bas80836255 opened this issue Jul 12, 2019 · 2 comments

Comments

@bas80836255
Copy link

bas80836255 commented Jul 12, 2019

In this case my source redis have key about 1 Million and I have start redis shake with sync command. It takes a while for sync data.
Later redisshake was terminated and i want to start redisshake again then redisshake have sync all key in source redis again and print log all the same key have sync

eg.

2019/07/12 17:35:40 [INFO] warning, rewrite key: {$key}
2019/07/12 17:35:40 [INFO] warning, rewrite key: {$key}
....
...
...
(key per line. if i have 1 million key it will print 1 million line )

I want to skip sync all data and do "fowardCommands" only.

What is your recommend way?

pls forgive my english skill, thank you very much

@vinllen
Copy link
Contributor

vinllen commented Jul 12, 2019

What you want is skip RDB sync and do increase sync only, right? The answer is no.
Why do you want to skip RDB sync? This may make data lost.

@bas80836255
Copy link
Author

bas80836255 commented Jul 15, 2019

My redis have many key.

I use supervisor for monitor and control redis-shake.

When redis-shake terminated and I restart it immediately . Redis-shake take a time for RDB sync before increase sync. I don't want to waste time in RDB sync.

However I forgot about data lost.

Thank for answer my question.

@vinllen vinllen closed this as completed Jul 15, 2019
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

2 participants