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
Support time based retention #17413
Draft
stelfrag
wants to merge
15
commits into
netdata:master
Choose a base branch
from
stelfrag:limit_tier0_update_every
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Support time based retention #17413
Conversation
This file contains 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
stelfrag
force-pushed
the
limit_tier0_update_every
branch
3 times, most recently
from
April 23, 2024 11:36
db8ff30
to
56f2033
Compare
stelfrag
force-pushed
the
limit_tier0_update_every
branch
2 times, most recently
from
April 29, 2024 06:35
d280a21
to
fbec2cb
Compare
ilyam8
force-pushed
the
limit_tier0_update_every
branch
from
May 6, 2024 10:26
fb168d5
to
b3f487e
Compare
stelfrag
force-pushed
the
limit_tier0_update_every
branch
2 times, most recently
from
May 13, 2024 10:57
15c5f52
to
6dc60fa
Compare
thiagoftsm
reviewed
May 14, 2024
@stelfrag I ran different tests with this PR, and I did not observe anything anomalous:
Tests were done compiling with |
stelfrag
force-pushed
the
limit_tier0_update_every
branch
from
May 16, 2024 07:51
1b3f212
to
b3d37a9
Compare
@stelfrag please rebase this to test it. |
Rename options Global backfill Metadata calculation (percentage) Retention timer Adjust time Calculate iterations Update every is less than 60 and divisor of 60
dbengine tier x retention days Switch to dbengine tier x disk space MB Fix grouping iterations
Assume retention to be the one specified with time Sane value for maximum datafile target size if max disk space is 0
Rework human readable retention and expected retention in nodes_instances api
If no time restriction is specified, use disk space calculated one
Remove duplicate, commented out code
…ailable will be used for calculations
Support seconds in human duration representation Remove commented out code Create tiers as needed
Compile with disable-ml properly Do proper time retention check Temporary additional info in node_instances api
stelfrag
force-pushed
the
limit_tier0_update_every
branch
from
May 17, 2024 10:11
b3d37a9
to
8681c18
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR introduces several changes
dbengine tier x disk space MB = nnnn
dbengine tier 0 disk space MB = 1024
dbengine tier x retention days = nnnn
dbengine tier 0 retention days = 14
dbengine tier x frequency = nnnn
dbengine tier 1 frequency = 60
to specify that this tier will store valuesevery 60 seconds
dbengine tier backfill
dbengine tier x disk space MB
options can be 0 to use as much space needed for the desired time based retention