Scaling 0 -> 1 is istant, 1 -> X takes up to five minutes #6375
-
We use some Redis scaler to spin up worker pods/deployments using scaledObjects. As there are none needed sometimes, we scale them to 0. Now when there is a need, we observe the following behavior:
While we wait for the - in this case 3 remaining ones - we can have a look at some things: The metrics from the metrics server look fine,
The
Even the
And, after around 3 minutes this time, we see the pods:
Using GCP and Autopilot as well as Classic GKE, v1.31.x. A minimal reproduction can look like this: apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: redis-scaledobject
labels:
deploymentName: dummy2
spec:
maxReplicaCount: 50
pollingInterval: 3 # Optional. Default: 30 seconds
cooldownPeriod: 5 # Optional. Default: 300 seconds
scaleTargetRef:
name: dummy2
triggers:
- type: redis
metadata:
address: redis.sacle-test:6379
listName: default3
listLength: "1" We also sometimes see the I can't find any discussion about that behavior, other than https://keda.sh/docs/2.14/concepts/scaling-deployments/#activating-and-scaling-thresholds mentioning that some scalers support "bang-scaling" from 0 -> 1+ Am I missing something out? Is this expected behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I did some local testing, and can't reproduce that issues with Only visible difference is the issue with the I opened some case at google, lets see what happens... |
Beta Was this translation helpful? Give feedback.
Let's continue on #5730