Skip to content
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

Autoscaling not working with Keda #6470

Open
nidiculageorge opened this issue Jan 9, 2025 · 1 comment
Open

Autoscaling not working with Keda #6470

nidiculageorge opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@nidiculageorge
Copy link

nidiculageorge commented Jan 9, 2025

Report

The autoscaling is not working as expected after the upgrade to version 2.16.1

Expected Behavior

The autoscaling should work

Actual Behavior

Autoscaling not working

Steps to Reproduce the Problem

kedaoperatorerror08012024.txt

2.When we send message from service bus the scaling should happen but its not happening

Logs from KEDA operator

2025-01-08T16:22:17Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "pdfgenerator-autoscaler", "error": "subscription r112atstriggermessageprocessing doesn't exist in topic r112atstriggermessageprocessing"}
2025-01-08T16:22:17Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "orchestratorservice-autoscaler", "error": "subscription orchestratorallevents doesn't exist in topic allevents"}
2025-01-08T16:22:17Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "pilmrservice-autoscaler", "error": "Get "": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:17Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "", "scaledObject.Name": "pilmrservice-autoscaler", "scaler": "azureServiceBusScaler", "error": "Get "": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:17Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "largepdfgenerator-autoscaler", "error": "Get "": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:17Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "a3services-uat-icanr111", "scaledObject.Name": "largepdfgenerator-autoscaler", "scaler": "azureServiceBusScaler", "error": "Get "https://.servicebus url/?api-version=2021-05": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "pilmrservice-autoscaler", "error": "Get "https://.servicebus url/necltr111createpilmr/Subscriptions/necltr111createpilmr?api-version=2021-05": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "", "scaledObject.Name": "pilmrservice-autoscaler", "scaler": "azureServiceBusScaler", "error": "Get "https://.servicebus url/necltr111createpilmr/Subscriptions/necltr111createpilmr?api-version=2021-05": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "a3services-uat-caqa1r111", "name": "messagequeueservice-autoscaler", "error": "Get "https://.servicebus url/?api-version=2021-05": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "largepdfgenerator-autoscaler", "error": "subscription r112largeatstriggermessageprocessing doesn't exist in topic r112largeatstriggermessageprocessing"}
2025-01-08T16:22:18Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "", "scaledObject.Name": "largepdfgenerator-autoscaler", "scaler": "azureServiceBusScaler", "error": "subscription r112largeatstriggermessageprocessing doesn't exist in topic r112largeatstriggermessageprocessing"}
2025-01-08T16:22:18Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "", "name": "pdfgenerator-autoscaler", "error": "Get "https://sb?api-version=2021-05\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "", "scaledObject.Name": "pdfgenerator-autoscaler", "scaler": "azureServiceBusScaler", "error": "Get "https://sb?api-version=2021-05\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "a3services-dev-secr111", "name": "documentconverterservice-autoscaler", "error": "Get "https://sb-": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
2025-01-08T16:22:18Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "", "scaledObject.Name": "documentconverterservice-autoscaler", "scaler": "azureServiceBusScaler", "error": "Get "https://sb": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}

==================

KEDA Version

2.16.1

Kubernetes Version

1.30

Platform

Microsoft Azure

Scaler Details

Azure Service bUS

Anything else?

Can see a error like this also

image

Can see the following in Keda Scalerfailed event

context deadline exceeded (Client.Timeout exceeded while awaiting headers)

@nidiculageorge nidiculageorge added the bug Something isn't working label Jan 9, 2025
@nidiculageorge
Copy link
Author

Keda Metrics Logs as below

kubectl get apiservice v1beta1.external.metrics.k8s.io -o yaml
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
annotations:
meta.helm.sh/release-name: keda
meta.helm.sh/release-namespace: keda
creationTimestamp: "2021-09-23T04:46:43Z"
labels:
app.kubernetes.io/component: operator
app.kubernetes.io/instance: keda
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: v1beta1.external.metrics.k8s.io
app.kubernetes.io/part-of: keda-operator
app.kubernetes.io/version: 2.16.1
helm.sh/chart: keda-2.16.1
name: v1beta1.external.metrics.k8s.io
resourceVersion: "4674562812"
uid: b7a324d0-77b8-4c7d-bdec-b79d3e560db0
spec:
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURFRENDQWZpZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFoTVJBd0RnWURWUVFLRXdkTFJVUkIKVDFK1lEVlFRREV3UkxSVVJCTUI0WERUSXpNRGd6T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QzBlc3lsckIwMDBwSUlRd1paRy8yaVcym9WUmtDCjFERG96YzQwSmg1THdpL2NaaHpDcTRHRXZMZnhzblZzV3E3OS9TbWEwMWpIaHpqQlpkOGJ4RE1lZERxZVNOU2cKZVdsOEJ4cnIvc3RPcGRUVTJiREIxZ2hYS1ZzPQotLS0tLJUSUZJQ0FURS0tLS0tCg==
group: external.metrics.k8s.io
groupPriorityMinimum: 100
service:
name: keda-operator-metrics-apiserver
namespace: keda
port: 443
version: v1beta1
versionPriority: 100
status:
conditions:

  • lastTransitionTime: "2025-01-09T08:14:51Z"
    message: all checks passed
    reason: Passed
    status: "True"
    type: Available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

1 participant