-
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
Scaling is flapping when idleReplicaCount != 0 #2314
Comments
@mkuf thanks for reporting, I can reproduce the problem. I'll try to fix this for the upcoming release. |
This problem is caused by HPA controller, when it finds out that the current replicas ( If we set To mitigate this problem we would need to refactor the current of KEDA behavior a lot. Thus I am marking this as a known issue and postponing to the next release. |
Hey @zroubalik is there any way to have a workaround on it to when we have idleReplicaCount > 1 we use the number of messages always > 1. In that way, we always will have at least 1 pod running. Keda is an awesome tool but we must have at least 1 pod running in our project. |
Let’s say that just like @brunodasilvalenga - we always need at least 1 pod running and using Cloudwatch scaler - is the following a valid workaround?
|
@brunodasilvalenga @or-shachar at the moment all you can do is to set |
Thanks for the feedback @zroubalik. Do you still plan to have It in the next release as planned in the milestone 2.6.0? |
@brunodasilvalenga I think we are not going to make it for 2.6.0, nobody is commited to implement this atm. Willing to contribute this? |
I would, but don't have that much experience in Go :( |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
For anyone else who like me couldn't grok the documentation, I'll mention that omitting That is, if you want to achieve what you hope |
@slobo could you please open a PR to docs repo with suggested fix, to make the documentation more clear? Thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
May I ask if this issue has been fixed? |
Report
When creating a Scaledobject with
idleReplicaCount
> 0, the Target is scaled Up/Down every time the trigger gets polled.Expected Behavior
Referring to the Docs, the Deployment should be scaled to
idleReplicaCount
if there is no activity on triggers and only scale tominReplicaCount
if there is activity.Actual Behavior
The Deployment is scaled to
minReplicaCount
, even if the length of the referred RabbitMQ Queue is 0.Any number of Pods above
idleReplicaCount
get Terminated immediately after creation, so that they don't even properly start.Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.4.0
Kubernetes Version
1.21
Platform
Other
Scaler Details
rabbitmq
Anything else?
No response
The text was updated successfully, but these errors were encountered: