-
Notifications
You must be signed in to change notification settings - Fork 624
Solve a few issue with binary backup #548
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
Conversation
I believe this introduces a new requirement to backup-utils, so we need to carefully consider this change. It would also need to be added to the requirements documentation here. |
@djdefi Right. And the tricky thing is changing the way we compress /decompress will have back-compat issue. I will continue working on this today to make sure we have least impact possible when improving performance |
@snh corrected me, the |
@djdefi Correct. For the two code changes I had here, it is all running on GHE instances which has pigz already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me
…ils into hao/use-pigz-backuputil
This reverts commit ddd3293.
@djdefi / @snh -- Do we always ask customer to run |
In this PR, we are trying to solve a few issues when backup and restore with binary backups
Use pigz instead of gzip in backup-util
Backup-util uses gzip which is super slow to compress large database files. It becomes the performance bottleneck when we backup binary backup. We will use pigz instead which is multi-threaded and way faster.
Backup-util tool should always pointing to sql master for binary backup restore
This is a bug in current binary backup restore. Backup-util restores mysqldump from any instance in cluster because it connects to sql master through connection. Binary backup restore has different mechanism. We need to connect to the Sql master node and copy files there instead. Customer does not necessarily restore on the MySql Master node.
/cc @github/ghes-infrastructure