Skip to content

Fix two issues with binary backup (slow gzip compression and support for restore from instances other than SQL master) #551

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

Merged
merged 21 commits into from
Feb 11, 2020

Conversation

oakeyc
Copy link
Contributor

@oakeyc oakeyc commented Feb 10, 2020

In this PR, we are trying to solve a few issues when backup and restore with binary backups

  1. 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. (3 to 4 times faster for backing up large database)

  2. Backup-util tool should always pointing to sql master for binary backup restore
    This is an issue 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. (@lildude mentioned that we tell customers to restore from the MySQL master node, but seems the old logical backup restore works with non-master node so make this change to make sure it maintains same behavior)

Original PR: #548

@jianghao0718

@jianghao0718 jianghao0718 merged commit fb84bd6 into rc2.19.3 Feb 11, 2020
@jianghao0718 jianghao0718 changed the title Oakeyc/update binary Create a rc2.19.3 branch to fix issues with binary backup Feb 11, 2020
@jianghao0718 jianghao0718 changed the title Create a rc2.19.3 branch to fix issues with binary backup Fix two issues with binary backup (slow gzip compression and support for restore from instances other than SQL master) Feb 11, 2020
@oakeyc oakeyc deleted the oakeyc/update-binary branch February 11, 2020 18:21
This was referenced Feb 11, 2020
dooleydevin added a commit that referenced this pull request Oct 2, 2023
…ne/find-parallel-in-more-locations

Backport 527 for 3.8: Find parallel in more locations
@dooleydevin dooleydevin mentioned this pull request Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants