-
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
HPA is not created for deployments with long names #2915
Comments
Hey, |
From #2995: We need to have a robust solution where creating two ScaledObjects with the same name does not break the link. Current thinking: Generate unique IDs per ScaledObject and use those instead. These unique IDs should be available to end-users (ie when doing |
yes, as @tomkerkhove said, we have to think it better so this fix will not be included till v2.8. Meanwhile, you could try reducing the ScaledObject name size 🙏 |
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. |
What we can do, is to generate some UID suffix to name like, |
Yes, but in that case we should add the current name as an annotation IMO to having a simple way to track which is what without inspecting all the SO looking for the UID |
What if somebody changes the annotation and breaks the link?
I think this is a more future-proof fix long term. We can work around it so that we can fit it in the current model but that feels more like a hack to me. |
No no, I'm not saying to link them using the annotation in the HPA, I see it as a helper for human discovery, KEDA should continue using the current approach of registering it in the SO Status. I know that the HPA is something internal for KEDA, but end-users check it, so if we change the name to another one with random names, IMO we should provide a workaround to know what HPA is related with what SO without having to go SO by SO checking their status. |
I agree, good idea 👍 |
We encounter this issue recently, too. Not sure if it's already scheduled in v2.10 release, if not, can we raise the severity of this issue? This issue makes KEDA not reliable because we expect the deployments with scaledobject resource in production environment are supposed to be able to autoscale but in fact, it might not because the length of the name exceeds. Now we have to sort out all deployments with name exceeded and spend extra effort to rename them and update the endpoint in their downstream service. Also quite difficult to restrict the length of the name of any new workloads in company. |
We are limited by k8s restrictions on labels and name, though you can provide custom HPA name in the advanced config: https://keda.sh/docs/2.9/concepts/scaling-deployments/#advanced |
Hi, similar-but-different to the issues mentioned previously, I've found that an HPA can't be created if the ScaledObject's name exceeds 63 characters, because of this code which wants to set the HPA's label (This is with version 2.11.2) Would it be more helpful for me to raise a new issue about this? |
Report
Related to bug #704
Error:
HPA is failing to be created: controller.scaledobject Failed to update ScaledObject with scaledObjectName label
Expected Behavior
HPA should be created
Actual Behavior
HPA wasn't created
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.6.1
Kubernetes Version
1.21
Platform
Amazon Web Services
Scaler Details
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: