-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-13009. Background snapshot defrag service (Draft v1) #9117
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
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8423ac7
HDDS-13009. Background snapshot defrag service
smengcl 838cd43
Make `RDBSstFileWriter` public to be used in defrag service.
smengcl 61b9ffc
Implement `delete(key)` in `RDBSstFileWriter`.
smengcl 73625a8
Add config `ozone.snapshot.defrag.service.timeout`, `ozone.snapshot.d…
smengcl f442502
Add comments/TODOs for defrag service interval/timeout
smengcl 8e37e5d
Implement SnapshotDefragService
smengcl 08cde3d
Make it compile
smengcl 2cd2cbf
Checkstyle
smengcl 6a8adb5
Add a test case for debugging
smengcl 0a131dd
Handle yaml previousSnapshotId null
smengcl 668799d
Use snapshot chain iterator in findFirstSnapshotNeedingDefrag
smengcl 93db705
Merge remote-tracking branch 'asf' into HDDS-13009-defrag-service
smengcl 135100e
Handle yaml snapId null so that it won't cause NPE. Null check should…
smengcl f5fd06a
Remove findPreviousDefraggedSnapshot
smengcl e970a3d
Remove TODO that is not applicable
smengcl c3de774
Add new configs to ozone-default.xml
smengcl 92256eb
Clean up test case
smengcl 9d57b89
Logging and TODO cleanups.
smengcl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3758,13 +3758,28 @@ | |
| Snapshot Deleting Service per run. | ||
| </description> | ||
| </property> | ||
| <property> | ||
| <name>ozone.snapshot.defrag.limit.per.task</name> | ||
| <value>1</value> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to benchmark to find a more appropriate value. |
||
| <tag>OZONE, PERFORMANCE, OM</tag> | ||
| <description>The maximum number of snapshots that would be defragmented in | ||
| each task run of snapshot defragmentation service. | ||
| </description> | ||
| </property> | ||
| <property> | ||
| <name>ozone.snapshot.filtering.service.interval</name> | ||
| <value>1m</value> | ||
| <tag>OZONE, PERFORMANCE, OM</tag> | ||
| <description>Time interval of the SST File filtering service from Snapshot. | ||
| </description> | ||
| </property> | ||
| <property> | ||
| <name>ozone.snapshot.defrag.service.interval</name> | ||
| <value>-1</value> | ||
| <tag>OZONE, PERFORMANCE, OM</tag> | ||
| <description>Task interval of snapshot defragmentation service. | ||
| </description> | ||
| </property> | ||
| <property> | ||
| <name>ozone.om.snapshot.checkpoint.dir.creation.poll.timeout</name> | ||
| <value>20s</value> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.