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

optimizes full replication #16

Open
siddontang opened this issue May 18, 2015 · 0 comments
Open

optimizes full replication #16

siddontang opened this issue May 18, 2015 · 0 comments

Comments

@siddontang
Copy link
Contributor

Now generating rdb and then full sync is slow for huge data, may cost a long time. So we may think a better way to do this.

Maybe we can use our own file format, only saving the raw backend leveldb/rocksdb data, like below:

  • generates a snapshot
  • scans the snapshot from first to last, gets all k-v and saves to a file
  • transfers this file to slave
  • slave reads the file and reset
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

1 participant