-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add querier.max-subquery-steps to make subquery step size check optional #5656
Add querier.max-subquery-steps to make subquery step size check optional #5656
Conversation
Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
Thanks.. make sense to me! But maybe in the future we should add a default as we know this can cause problems? |
I see. I want to see if we can propose some kind of limit in Prometheus and keep Cortex behavior the same as Prometheus on this limit... Ideally this issue should be caught by samples limit, but there might be edge cases depending on actual query |
I will merge this one and keep this feature disabled in this release. We can think about whether we want to turn it on by defualt in the future |
…nal (cortexproject#5656) * add querier.max-subquery-steps to make subquery step size check optional Signed-off-by: Ben Ye <[email protected]> * update Signed-off-by: Ben Ye <[email protected]> * disable subquery step size check by default, make it optional Signed-off-by: Ben Ye <[email protected]> * fix integ test and add changelog Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
* Fix param_query omitted in query frontend query stats log (#5655) * fix param_query not logged in query stats log Signed-off-by: Ben Ye <[email protected]> * fix lint Signed-off-by: Ben Ye <[email protected]> * fix unit test of user agent Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]> * Add querier.max-subquery-steps to make subquery step size check optional (#5656) * add querier.max-subquery-steps to make subquery step size check optional Signed-off-by: Ben Ye <[email protected]> * update Signed-off-by: Ben Ye <[email protected]> * disable subquery step size check by default, make it optional Signed-off-by: Ben Ye <[email protected]> * fix integ test and add changelog Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]> * bump RC version to 1.16.0-rc.1 Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
What this PR does:
Expose
querier.max-subquery-steps
subquery max allowed steps limit as a flag. This default limit is 0, which disables this check so that we can keep the behavior the same as previous releases and PrometheusWhich issue(s) this PR fixes:
Fixes #5651
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]