-
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
UnPause does not happen immediately #4642
Comments
I tried to restart keda-operator and in 1-2 minutes after restart it updated/unpaused the HPA. So it looks like the are 2 problems
|
There's new implementation of pausing ScaledObject coming in 2.11: #4550 this should resolve this issue |
there was a typo in the orignal post, missing the 0 - #4550 |
This will be shipped as part of #4743. Closing this issue since it was fixed already |
For history. |
Report
We have about 500 ScaledObjects.
Some with CPU, some with RabbitMQ and some with Kafka scalers (only one scaler per ScaledObject)
Pausing of ScaledObjects happens immediately after
autoscaling.keda.sh/paused-replicas
annotation added to ScaledObject:Reconcile
messageHPA updated
messageBut unPausing does not happen same way.
For ScaledObject with CPU scaler it may happen in couple of minutes
For ScaledObject with Kafka/RabbitMQ scaler it may never happen or happen with a big delay (tens of minutes)
Expected Behavior
autoscaling.keda.sh/paused-replicas
annotation was removed from ScaledObject.Actual Behavior
autoscaling.keda.sh/paused-replicas
annotation removed from ScaledObjectautoscaling.keda.sh/paused-replicas
and min=max=paused-replicas)Steps to Reproduce the Problem
kubectl annotate scaledObject test-workload --overwrite autoscaling.keda.sh/paused-replicas=2
test-workload
= it was paused (annotated and min=max=2)kubectl annotate scaledObject test-workload --overwrite autoscaling.keda.sh/paused-replicas-
test-workload
= it still paused (annotated and min=max=2)test-workload
= annotation removed!Logs from KEDA operator
KEDA Version
2.10.1
Kubernetes Version
1.24
Platform
Amazon Web Services
Scaler Details
Kafka, RabbitMQ, CPU
Anything else?
Also interesting, why Reconcile for CPU-based ScaledObjects happens (based on the keda-operator logs) very often?
And for Kafka/RabbitMQ Reconcile happens very rarery.
Maybe actual problem in this behavior? Keda does not do immediately UnPause, but periodically scans all the ScaledObjects and "refresh/realign" HPA?
The text was updated successfully, but these errors were encountered: