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

checkpoints: fix performance drop on big volume restores #1393

Conversation

alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Feb 24, 2023

Thank you for contributing to the Bareos Project!

Backport of PR #1345 to bareos-22

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

alaaeddineelamri and others added 12 commits February 28, 2023 08:48
remove unused `PossibleIncompleteJob` function

(cherry picked from commit 03c838f)
Previously, when updating backup checkpoints, DIR would try to
update the jobmedia table entries or create a new one in case
an update is not possible which in consequence made the
jobmedia table entries kind of merged.

The change lowered the number of entries in the jobmedia table
but had the unwanted consequence of slowing restores in certain
situations (restores on big volumes for example).

With this change, jobmedia entries will only get created, and
checkpoints will add an entry into the jobmedia table instead
of updating existing entries.

(cherry picked from commit 897129f)
* changed when checkpoints are triggered relative to attribute saving
* add extra checks for when to trigger checkpoints

(cherry picked from commit 2297d5a)
after jobmedia entry creation

(cherry picked from commit f622ade)
(cherry picked from commit b270c90)
@arogge arogge force-pushed the dev/alaaeddineelamri/bareos-22/backport-1345 branch from 9fb36b1 to 358b2e9 Compare February 28, 2023 07:48
@arogge arogge merged commit b63b6ea into bareos:bareos-22 Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants