-
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
Pulsar scaler: If no subscription exists the default number of pods is zero #5417
Comments
Hello, You could set a fallback to scale to at least X if there is an error. In this case, if the subscription doesn't exist, I guess that KEDA will apply the fallback. If you set at least 1 instance, your pod will wake up creating the subscription and KEDA will start to work again. |
|
It shouldn't happen, as KEDA always check the minReplicaCount before scaling to 0. If it's KEDA who scales your workload to 0, you will see a clear entry in the log saying that the scalerExecutor has scaled from X to 0. Do you see any error like that? BTW, v2.8 is quite old (today we have released 2.13 so v2.8 has almost a year and a half). I'd suggest upgrading to a more updated version if it's possible to improve the performance and security (A lot if fixed CVEs during these months) |
Thanks FYI the |
Report
We are using Keda 2.8.2 with Pulsar successfully for some time.
We often will suspend namespaces and delete pulsar PVCs.
Unfortunately when the environment is brought back to life the Keda autoscaler is unable to launch our pods because the subscription does not exist. And although the
MinReplicas: 1
the error results in no pods being launched (or so it appears)But the subscription does not exist because the pods are not launched.
At least that's my understanding of the problem.
Expected Behavior
I would expect that despite the failure - since
MinReplicas: 1
that Keda would launch at least one podotherwise we end up with a chicken-and-egg problem - we can't launch the pods without a subcription, we can't create a subscription without a pod.
Actual Behavior
Zero pods launched.
We had to edit the
deployment.yaml
manually and set the replica count to1
and once that happened Keda took over from there.Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.8.2
Kubernetes Version
1.25
Platform
Amazon Web Services
Scaler Details
Pulsar
Anything else?
No response
The text was updated successfully, but these errors were encountered: