-
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
Keda not scaling deployment #2724
Comments
Hi @denzhel |
Hey @JorTurFer Operator:
Metrics server:
After searching and reading the various issues, I think I understand why Keda is not scaling. Let me know if I'm right please @JorTurFer So .. the query I used is Today I realized that I might have configured the threshold incorrectly ... for example if the HPA current metric shows Should I set the threshold I want according to |
@denzhel I would definitely recommend setting the threshold to some lower number (5-10?), just to clarify that KEDA is working correctly. Then you can set the threshold to a number that fits your needs. |
Hi @zroubalik, thank you for your answer ! Besides lowering my threshold to a lower number for debugging purposes, can you please explain why should I do that or was my theory on how HPA works is correct ? |
Did you query that metric manually? Just for knowing what value is receiving/exposing KEDA |
@JorTurFer When I run this query in Prometheus:
I get the following:
However, when I run the following kubectl query:
I get:
|
There is a section at the end of the page explaining how to solve it :) |
At the moment I checked, both Prometheus and the
How ever,
Divided by Should I set my threshold lower ? 1525 is way above the threshold and currently that doesn't work because the threshold is the average number between all the pods. |
Threshold = desired value per pod Got it. It's not that trivial. |
@zroubalik Yes. |
Report
I'm using this HPA config:
This is a screenshot from Grafana:
This is a screenshot from Prometheus it self when running the query manually:
Expected Behavior
I expect Keda to scale my deployment
Actual Behavior
As you can see HPA was not triggered and did not scale up
No errors were seen in logs
Steps to Reproduce the Problem
Logs from KEDA operator
A lot of these ^
KEDA Version
2.6.1
Kubernetes Version
1.20
Platform
Amazon Web Services
Scaler Details
Prometheus
Anything else?
No response
The text was updated successfully, but these errors were encountered: