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

backup: Use pargzip instead of pgzip for compression. #7037

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

enisoc
Copy link
Member

@enisoc enisoc commented Nov 14, 2020

Use pargzip instead of pgzip for compression to fix #5613. We still use pgzip for decompression because we haven't seen problems in that phase.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc changed the title Backups: Switch pgzip -> pargzip for lower memory usage backup: Use pargzip instead of pgzip for compression. Nov 16, 2020
@enisoc enisoc marked this pull request as ready for review November 16, 2020 23:36
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look fine.
Do we have any before and after numbers on memory usage and time taken for backups?

@enisoc
Copy link
Member Author

enisoc commented Nov 17, 2020

In our environment, the time didn't change noticeably. With pgzip, memory usage would slowly grow throughout the backup process until OOMing. With pargzip, the memory usage is constant and insignificant compared with the memory used by mysqld.

@deepthi deepthi merged commit bb32eab into vitessio:master Nov 17, 2020
@deepthi deepthi deleted the enisoc-pargzip branch November 17, 2020 00:48
@askdba askdba added this to the v9.0 milestone Nov 27, 2020
@rvrangel rvrangel mentioned this pull request Aug 17, 2022
3 tasks
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

Successfully merging this pull request may close these issues.

xtrabackup engine can use tons of vttablet memory
3 participants