Skip to content
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

Move ingester.spread-flushes from flush time to sample add time #1578

Merged
merged 3 commits into from
Aug 16, 2019

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Aug 14, 2019

So that all ingesters will make the same decision, hence chunks flushed to the DB are more likely to overlap. This is a replacement for #1414, keeping the option name but implementing it differently.

Also add a test and fix an incorrect comment on memorySeries.add().

Trying this out in staging environment, I see that the 'reason' stats are less helpful because the chunks that hit their timeslot are reported as "multiple chunks in series". We could add more metadata to report the different cases accurately.

EDIT: I blogged about the efficiency gain: https://www.weave.works/blog/how-i-halved-the-storage-of-cortex

Signed-off-by: Bryan Boreham <bryan@weave.works>
Signed-off-by: Bryan Boreham <bryan@weave.works>
So that all ingesters will make the same decision, hence chunks
flushed to the DB are more likely to overlap.

Also add a test.

Signed-off-by: Bryan Boreham <bryan@weave.works>
Copy link
Contributor

@csmarchbanks csmarchbanks left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants