Skip to content

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

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

SungJin1212
Copy link
Member

Disable chunk trimming in Ingesters to skip duplicated works in the query engine and Ingesters.

Which issue(s) this PR fixes:
Fixes #6269

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@SungJin1212 SungJin1212 force-pushed the Disable-chunk-trimming branch 2 times, most recently from 0b0281b to 02a50e8 Compare October 16, 2024 02:20
@yeya24 yeya24 removed the type/bug label Oct 17, 2024
expr := ps.WalkRangeQuery()
query := expr.Pretty(0)
res1, err1 := c1.QueryRange(query, start, end, scrapeInterval)
res2, err2 := c2.QueryRange(query, start, end, scrapeInterval)
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

@SungJin1212 SungJin1212 force-pushed the Disable-chunk-trimming branch from 02a50e8 to 9e1d981 Compare October 18, 2024 01:17
Copy link
Contributor

@yeya24 yeya24 left a 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

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 19, 2024
@SungJin1212 SungJin1212 force-pushed the Disable-chunk-trimming branch from 9e1d981 to d8b6469 Compare October 24, 2024 01:59
@SungJin1212 SungJin1212 force-pushed the Disable-chunk-trimming branch from d8b6469 to 217c867 Compare October 25, 2024 01:07
@yeya24 yeya24 merged commit 275a5bf into cortexproject:master Oct 25, 2024
16 checks passed
CharlieTLe pushed a commit to CharlieTLe/cortex that referenced this pull request Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ingester lgtm This PR has been approved by a maintainer size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable chunk trimming in Ingesters
2 participants