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

series endpoint uses normal splits #2472

Merged
merged 1 commit into from
Aug 6, 2020
Merged

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Aug 6, 2020

We hardcoded series splitby to 24h recently to align with the 24h index buckets
https://github.com/grafana/loki/blob/master/pkg/querier/queryrange/roundtrip.go#L265-L266

We can see that the index time is pretty short, but we’re fetching too many chunks.
Also there’s no guarantee and in fact it’s incredibly unlikely that a 24h split will align with 1 daily bucket (it’s much more likely that the start/end of the split is between bucket bounds, which would spill into another bucket).
I think we can decrease the splitby for these reasons.

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@owen-d owen-d merged commit f8ee408 into grafana:master Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants