-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
When using multiple triggers seems like scaling is not working as expected #550
Comments
While the spec is already open for it, we don't support multiple triggers yet and is being tracked via #476. Feel free to head over there and mention you'd like to have this as well. |
Unless @ahmelsayed corrects me ofcourse. |
@tomkerkhove thanks for the response, do you have any estimation when multiple triggers will be supported? |
@schmaldaniel1 could you please post here the output of |
@zroubalik I dont have the above setup anymore, but this is from a new one with same setup.
|
@schmaldaniel1 I can see two metrics with the same name: |
@zroubalik I know, its not the same setup.. the previous setup is deleted and I cant reproduce it now. if it is crucial I can try next week to use prometheus. |
The problem is, that this setup is using two metrics, but both have the same name. So I can't see what is wrong with the previous setup where you are using different metrics. Would be great if you can try to provide the original setup once you have some time. |
@zroubalik first thanks for the responses. I guess that the names is being created by scaled object when it creates the HPA, for instance this is the scaled object yaml for this setup and you can see there that there is no place I setup the names and yet in the status you see that same name.
|
by the way also here we are using different subscriptions for pubsub scale, and yet it gives the external metrics the same name. |
@schmaldaniel this problem is solved in this PR #732 The fix will be released as part of v1.4 Closing this issue, please reopen if you happen to have this problem with v1.4 |
A clear and concise description of what the bug is.
We are testing keda as one of our scaler option, while the tests we noticed that when using multiple triggers with prometheus scale is not working as expected.
The scenario is, we have deployment which exposes 2 metrics to prometheus, based on those metrics we would like to scale.
This is the scale object yaml we are using:
As you can see I set 2 metrics, while the occupied threshold is 100 and the value is 94.
The queued metric treshold is 2 and the value is 0.
For some reason the HPA shows that the value is 94 for the queued metric and as a result it starts to scale the replicas although none of the metrics are above the threshold, as you can see here:
This is the HPA describe after the scale:
This is what I get from the get HPA, you can see that in both of the metrics it applies 94 while only the first one should be 94 and the second should be 0.
This is the occupied metric graph, as you can see it always under 100:
This is queued graph, stable on 0:
Expected Behavior
No scale will occur since no metric is above the threshold
Actual Behavior
Keda scales my replicas.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: