-
Notifications
You must be signed in to change notification settings - Fork 803
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 <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
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 <benye@amazon.com> * update Signed-off-by: Ben Ye <benye@amazon.com> * disable subquery step size check by default, make it optional Signed-off-by: Ben Ye <benye@amazon.com> * fix integ test and add changelog Signed-off-by: Ben Ye <benye@amazon.com> --------- Signed-off-by: Ben Ye <benye@amazon.com>
* 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 <benye@amazon.com> * fix lint Signed-off-by: Ben Ye <benye@amazon.com> * fix unit test of user agent Signed-off-by: Ben Ye <benye@amazon.com> --------- Signed-off-by: Ben Ye <benye@amazon.com> * 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 <benye@amazon.com> * update Signed-off-by: Ben Ye <benye@amazon.com> * disable subquery step size check by default, make it optional Signed-off-by: Ben Ye <benye@amazon.com> * fix integ test and add changelog Signed-off-by: Ben Ye <benye@amazon.com> --------- Signed-off-by: Ben Ye <benye@amazon.com> * bump RC version to 1.16.0-rc.1 Signed-off-by: Ben Ye <benye@amazon.com> --------- Signed-off-by: Ben Ye <benye@amazon.com>
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]