keda kafka scaled object frequently scaling pods #1805
Unanswered
k8sdevopsuser
asked this question in
Q&A / Need Help
Replies: 1 comment
-
KEDA is stateless so unfortunately we don't keep any state or record of previous metrics, on which we can try to do some analysis as you suggest. But that's interesting feature so we are looking to see some specific proposals! Because 1<->N scaling is done by HPA, so you can try to twek HPA settings, it might help you with that. You can try to look at the scaling behavior: or |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
EKS version v1.18.9
MSK version
We have Keda version 2.2 installed
AME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
keda keda 1 2021-05-12 12:15:45.61748888 +0530 IST deployed keda-2.2.2 2.2.0
We have defined a scaled object as follows
We usually see the message in the keda operator log wherein we get lag values for the 3 partitions and everything is good .
Sometimes we get response from only one partition , log entry similar to below and we are seeing the pods being scaled as expected as our target is set to 10 .
Our application processes the messages in batches so the lag threshold goes up and then as the batch is processed the lag goes to 0 . Keda currently only looks at the instantaneous lag value it polls every 5 seconds and sends it to hpa . HPA does the average of the instantaneous values and decides whether to scale out or scale in .
Is there a way keda can do overage of the values received over a predefined period and then send it to HPA .
Or is there a way to configure number of polling intervals the lag is more than threshold before the scale out or scale in happens .
In our case we see the scaling happens very frequently and whenever we check the hpa the current value is 0 but we still see 3 pods running because of the way the HPA is scaling the pods .
Beta Was this translation helpful? Give feedback.
All reactions