-
Notifications
You must be signed in to change notification settings - Fork 594
feat(repository): Metadata compression config support for directory and indirect content #4080
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
feat(repository): Metadata compression config support for directory and indirect content #4080
Conversation
dff0752 to
ba2ae1d
Compare
Adds metadata compression setting to policy Add support to configure compressor for k and x prefixed content Set zstd-fastest as the default compressor for metadata in the policy Adds support to set and show metadata compression to kopia policy commands Adds metadata compression config to dir writer Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
ba2ae1d to
d11e963
Compare
|
We reviewed this change internally and also here: kastenhq#560 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4080 +/- ##
==========================================
+ Coverage 75.86% 77.23% +1.37%
==========================================
Files 470 500 +30
Lines 37301 29323 -7978
==========================================
- Hits 28299 22649 -5650
+ Misses 7071 4725 -2346
- Partials 1931 1949 +18 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
|
Hey @jkowalski, |
|
Approved, although there are some test failures, I'm ok with the PR as long as those are fixed and the content manager layer remains as-is. |
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
|
@jkowalski @Shrekster I've fixed the test. Now that we are always passing the compressor for metadata content, we have to add explicit check for < V2 format not to apply that. Please review latest commit if it makes sense. |
|
@jkowalski could you please have a look if the CI fixes look okay? |
jkowalski
left a comment
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.
LGTM!
…nd indirect content (kopia#4080) * Configure compressor for k and x prefixed content Adds metadata compression setting to policy Add support to configure compressor for k and x prefixed content Set zstd-fastest as the default compressor for metadata in the policy Adds support to set and show metadata compression to kopia policy commands Adds metadata compression config to dir writer Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Pass concatenate options with ConcatenateOptions struct Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Move content compression handling to caller Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Move handling manifests to manifest pkg Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Correct const in server_test Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Remove unnecessary whitespace Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Disable metadata compression for < V2 format Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> --------- Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
…nd indirect content (kopia#4080) * Configure compressor for k and x prefixed content Adds metadata compression setting to policy Add support to configure compressor for k and x prefixed content Set zstd-fastest as the default compressor for metadata in the policy Adds support to set and show metadata compression to kopia policy commands Adds metadata compression config to dir writer Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Pass concatenate options with ConcatenateOptions struct Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Move content compression handling to caller Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Move handling manifests to manifest pkg Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Correct const in server_test Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Remove unnecessary whitespace Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> * Disable metadata compression for < V2 format Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com> --------- Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Overview
This PR adds support to configure metadata compressor for k and x prefixed metadata.
This PR:
zstd-fastestas the default compressor for metadata in the policykopia policycommandsAddresses: #4081
Test plan
zstd-fastest500Msize to ./repo dirrepodir and observe stats. Validate content withkandxprefix is compressed withzstd-fastests2-default/internaldirectory and view content stats. Validate new metadata is compressed withs2-defaultkopia/testsdir./testsdir and snapshot the dir and inspect content. New metadata stats should be seen asuncompressed