-
Notifications
You must be signed in to change notification settings - Fork 541
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
Jsonnet: Fix ruler-querier CPU threshold #3520
Conversation
@jhesketh can you please verify whether my thinking is correct here? |
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.
We already do the * 1000
in the distributor CPU, so LGTM.
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.
Yep, this is the approach I took to make partial CPU requests work with distributors.
ruler_querier_container+:: | ||
// Test a <1 non-integer CPU request, to verify that this gets converted into an integer for | ||
// the KEDA threshold | ||
k.util.resourcesRequests(0.2, '1Gi'), |
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.
eg, does this still work if we supply "1" or "0.2" etc.
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 @jhesketh - I've changed the CPU request into '0.2' along with a comment that we're testing using a string, to make sure it works.
In auto-scaling Jsonnet logic, fix ruler-querier CPU threshold so it's a string encoded integer millicores value. Signed-off-by: Arve Knudsen <[email protected]>
Signed-off-by: Arve Knudsen <[email protected]>
687cf90
to
974f2f8
Compare
* Jsonnet: Fix ruler-querier CPU threshold In auto-scaling Jsonnet logic, fix ruler-querier CPU threshold so it's a string encoded integer millicores value. Signed-off-by: Arve Knudsen <[email protected]>
What this PR does
In auto-scaling Jsonnet logic, fix ruler-querier CPU threshold so it's a string encoded integer millicores value.
Which issue(s) this PR fixes or relates to
After my recent auto-scaling fix, I realized that the ruler-querier component may supply KEDA with a decimal CPU threshold, while it requires an integer.
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]