-
Notifications
You must be signed in to change notification settings - Fork 816
Disable chunk trimming in ingester #6270
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
Disable chunk trimming in ingester #6270
Conversation
0b0281b
to
02a50e8
Compare
integration/query_fuzz_test.go
Outdated
expr := ps.WalkRangeQuery() | ||
query := expr.Pretty(0) | ||
res1, err1 := c1.QueryRange(query, start, end, scrapeInterval) | ||
res2, err2 := c2.QueryRange(query, start, end, scrapeInterval) |
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.
We need to change the time range here probably. Chunks trimming happens when the requested time range is within the Chunk range.
|-------------| chunk
|-------| requested range
So a chunk should contain 120 samples. With 15s scrape interval a chunk will be roughly 30min.
It is better to reduce time range < 30min so that we know it triggers chunks trimming
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.
Thanks!
02a50e8
to
9e1d981
Compare
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.
THanks! Thanks for adding the test
9e1d981
to
d8b6469
Compare
Signed-off-by: SungJin1212 <[email protected]>
d8b6469
to
217c867
Compare
Signed-off-by: Charlie Le <[email protected]>
Disable chunk trimming in Ingesters to skip duplicated works in the query engine and Ingesters.
Which issue(s) this PR fixes:
Fixes #6269
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]