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

improve default configuration #1508

Conversation

bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Jul 11, 2023

This PR serve several improvements

  • OP#5304 Add Recycle Pool = Scratch to default Scratch Pool.
  • OP#5459 Replace gzip and md5 by more modern lz4 and xxh128 in default configuration and systemtest
    • We extend fileset-multiple-blocks to test all signature and all compression options we have.
  • OP#5432 Change default for "HardLinks" CFG_TYPE_OPTION to no and explain in documentation the behavior

It also updates the systemtests to use newer compression/checksum algorithms.

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
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

@bruno-at-bareos bruno-at-bareos marked this pull request as ready for review July 12, 2023 14:54
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

Some small things need to be addressed. Keep in mind that documentation files should also have only 80 characters per line.

@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/improve-default-configuration branch from 7688f74 to 44631a9 Compare July 13, 2023 13:54
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

I found some small things.

@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/improve-default-configuration branch from 29dcdbe to 4832ed8 Compare July 17, 2023 08:54
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

I think we can set the default log timestamp format in bareos itself.

Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

Found some trailing whitespace

docs/manuals/source/Configuration/Director.rst Outdated Show resolved Hide resolved
docs/manuals/source/Configuration/Director.rst Outdated Show resolved Hide resolved
docs/manuals/source/Configuration/Director.rst Outdated Show resolved Hide resolved
docs/manuals/source/Configuration/Director.rst Outdated Show resolved Hide resolved
docs/manuals/source/Configuration/Director.rst Outdated Show resolved Hide resolved
@joergsteffens joergsteffens dismissed their stale review July 27, 2023 08:44

My topics are covered and sebsura is already doing a good review job.

@joergsteffens joergsteffens removed their request for review July 27, 2023 08:44
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- It is mandatory for data pool, because the recyclepoolid is not
  updated when a media is affected to this pool data.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
bruno-at-bareos and others added 16 commits August 7, 2023 10:58
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- replace compression GZIP by LZ4
- replace signature MD5 by XXH128

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- test all signature options MD5,SHA1,SHA256,SHA512,XXH128
- test all compression options GZIP,GZIP(LEVEL),LZO,LZ4,LZ4HC

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- set lz4 as Auto Deflate Algorithm in FileStorage2
  so different compression are tested.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- some of the helper functions used unaligned memory access as an
  optimization. A quick look at godbolt.org showed that modern
  compilers emit the same code with or without those manual
  optimizations, so the unaligned accesses were removed to avoid
  relying on undefined behaviour.
- core: compression free internal fastlz buffers

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
When you have a file with multiple hardlinks and the first hardlink
encountered gets excluded, then no actual file data is send but the
backup is still finishes without errors.

On restore you will get an error.

- hardlink fix camelcase output in dir_conf.cc
- Add HardLink = No for config-dump and gluster systemtest

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- unify the use of "hard links" over mixed "hardlinks"
- reformat reviewed paragraphs to line length 80
- apply check-sources recommendation and format

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
Co-authored-by: Jörg Steffens <joergsteffens@users.noreply.github.com>
- create new default json export

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- parameter start with Capital letter
- value for compression and signature are fully uppercase
- remove redondant default value in LogTimestampFormat

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
@BareosBot BareosBot merged commit 502c2c8 into bareos:master Aug 7, 2023
@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/master/improve-default-configuration branch August 14, 2023 12:00
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.

None yet

5 participants