-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Support limits in multi-tenant queries. #5626
Support limits in multi-tenant queries. #5626
Conversation
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 for working on this. Figuring out limits relating to multi tenant federation certainly feels quite arbitrary.
I think we can take a pragmatic stance and accept no ability for defining custom limits for federated tenant for now.
MaxQuerySeries
and QuerySplitDuration
.Signed-off-by: JordanRushing <rushing.jordan@gmail.com>
Signed-off-by: JordanRushing <rushing.jordan@gmail.com>
I've authored some tests for limits-related util functions as well as a quick fix for I'm happy to push these commits to this PR or to PR the underlying fork; please let me know! |
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.
LGTM!
What this PR does / why we need it:
This changes adds support for the the following limits in multi-tenant queries:
MaxQuerySeries
QuerySplitDuration
MaxEntriesLimitPerQuery
MinShardingLookback
MaxQueryLength
MaxQueryParallelism
MaxQueriersPerUser
MaxCacheFreshness
It always uses the more restricted limit. That means the smallest
MaxQuerySeries
but biggestQuerySplitDuration
. The split duration is special. Zero means disabled.Also, the global default resolver is the multi tenant resolver when multi-tenant queries are enabled. This will result HTTP 400 errors in case the user sends multiple tenants to endpoints that do not support it.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Checklist
CHANGELOG.md
about the changes.