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

Loki: Enable Query Splitting by default #72094

Merged
merged 2 commits into from Jul 21, 2023
Merged

Loki: Enable Query Splitting by default #72094

merged 2 commits into from Jul 21, 2023

Conversation

matyax
Copy link
Contributor

@matyax matyax commented Jul 21, 2023

In response to different query performance scenarios, we implemented query splitting, where queries that request more than a day of data are split in sub-requests of 1 day duration each. For example, requesting 7 days of logs will produce 7 requests of 1 day.

This PR makes this the default behavior for querying Loki.

Additionally, we're adding a tooltip to explain how query limits apply when querying with splitting enabled.

Tooltip

If needed, this feature can be disabled by setting lokiQuerySplitting to false.

Which issue(s) does this PR fix?:

Closes #67547
Fixes #67548

Special notes for your reviewer:

Remove the feature flag from custom.ini.
The default querying behavior should be with query splitting for queries with > 1 day duration.

@matyax matyax requested review from grafanabot and a team as code owners July 21, 2023 10:15
@matyax matyax requested review from summerwollin and dafydd-t and removed request for a team July 21, 2023 10:15
@matyax matyax added add to changelog no-backport Skip backport of PR labels Jul 21, 2023
@matyax matyax added this to the 10.1.x milestone Jul 21, 2023
@matyax matyax requested a review from a team July 21, 2023 11:00
Copy link
Member

@gwdawson gwdawson left a comment

Choose a reason for hiding this comment

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

LGTM!

@matyax matyax merged commit c84d689 into main Jul 21, 2023
25 checks passed
@matyax matyax deleted the matyax/query-splittin-ga branch July 21, 2023 11:53
linoman pushed a commit that referenced this pull request Jul 24, 2023
* lokiQuerySplitting: enable feature flag by default

* Query stats: add special note for stats + splitting
@matyax matyax mentioned this pull request Jul 28, 2023
9 tasks
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants