Skip to content

Improve efficiency ratio of incremental chain restore #201

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

Closed
gsmolk opened this issue May 5, 2020 · 3 comments
Closed

Improve efficiency ratio of incremental chain restore #201

gsmolk opened this issue May 5, 2020 · 3 comments
Milestone

Comments

@gsmolk
Copy link
Contributor

gsmolk commented May 5, 2020

It would be good to avoid block overwriting when restoring incremental chain.

gsmolk added a commit that referenced this issue May 5, 2020
@gsmolk
Copy link
Contributor Author

gsmolk commented May 5, 2020

First results:

INFO: Backup files are restored. Transfered bytes: 5148MB, time elapsed: 42s
INFO: Approximate restore efficiency ratio: 30% (1554MB/5148MB)

vs

INFO: Backup files are restored. Transfered bytes: 1554MB, time elapsed: 15s
INFO: Approximate restore efficiency ratio: 100% (1554MB/1554MB)

https://gist.github.com/gsmol/1f0e441f6c305b67ea6658217bbca2ec

@gsmolk gsmolk changed the title Improve incremental efficiency ratio Improve incremental restore efficiency ratio May 5, 2020
@gsmolk
Copy link
Contributor Author

gsmolk commented May 7, 2020

Some more tests:

1. FULL
INFO: Backup files are restored. Transfered bytes: 1554MB, time elapsed: 9s
INFO: Approximate restore efficiency ratio: 100% (1554MB/1554MB)
2. FULL
INFO: Backup files are restored. Transfered bytes: 1554MB, time elapsed: 10s
INFO: Approximate restore efficiency ratio: 100% (1554MB/1554MB)
3. INCR
INFO: Backup files are restored. Transfered bytes: 3525MB, time elapsed: 21s
INFO: Approximate restore efficiency ratio: 44% (1557MB/3525MB)
4. INCR
INFO: Backup files are restored. Transfered bytes: 3525MB, time elapsed: 19s
INFO: Approximate restore efficiency ratio: 44% (1557MB/3525MB)

patched:
1. FULL
INFO: Backup files are restored. Transfered bytes: 1554MB, time elapsed: 9s
INFO: Approximate restore efficiency ratio: 100% (1554MB/1554MB)
2. FULL 
INFO: Backup files are restored. Transfered bytes: 1554MB, time elapsed: 9s
INFO: Approximate restore efficiency ratio: 100% (1554MB/1554MB)
3. INCR
INFO: Backup files are restored. Transfered bytes: 1557MB, time elapsed: 13s
INFO: Approximate restore efficiency ratio: 100% (1557MB/1557MB)
4. INCR
INFO: Backup files are restored. Transfered bytes: 1557MB, time elapsed: 11s
INFO: Approximate restore efficiency ratio: 100% (1557MB/1557MB)

@gsmolk gsmolk changed the title Improve incremental restore efficiency ratio Improve efficiency ratio of incremental chain restore May 7, 2020
gsmolk added a commit that referenced this issue May 7, 2020
@gsmolk gsmolk added this to the 2.4.0 milestone May 15, 2020
@gsmolk
Copy link
Contributor Author

gsmolk commented May 25, 2020

Merged

@gsmolk gsmolk closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant