-
Notifications
You must be signed in to change notification settings - Fork 56
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
execution,engine: respect configured max samples #302
base: main
Are you sure you want to change the base?
execution,engine: respect configured max samples #302
Conversation
21c457f
to
2c86320
Compare
dd79a7a
to
9bb2f53
Compare
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
836a40a
to
d9fc3c2
Compare
execution/limits/limits.go
Outdated
"github.com/thanos-io/promql-engine/query" | ||
) | ||
|
||
type Limits struct { |
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.
I think this should be an interface and we should have a nop
implementation to avoid going through locks when limits are not configured.
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.
Removed the locks but there is a short circuit if we have no limit at the start anyhow!
3d650aa
to
bfeae3a
Compare
64226bb
to
63f370e
Compare
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
63f370e
to
cf9d7f9
Compare
0aeafa9
to
318b752
Compare
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
4c647ab
to
8c465ad
Compare
An attempt to start to respect the provided max sample limit from the promql options. It only pipes the sample limits through to matrix and vector selectors.