RabbitMQ - Unacked Messages not considering for scaling the pods #6494
Replies: 1 comment 4 replies
-
As written in the docs, "if you have unacknowledged messages and want to have these counted for the scaling to happen, make sure to utilize the http". So using http is the solution. Though, the docs could explain better. Why does it have to be http? Is it that it is impossible to support this with amqp, or is it a pending improvement? Also, since there is no explanation, then for someone using amqps (because they need secure connections), then a switch to http looks like a no go because it would be insecure. Later in the docs there is the "lts" parameter, but this is confusing. Why not call this https? From my understanding http+tls is the same as http. If there is no difference, then using https makes things less confusing. |
Beta Was this translation helpful? Give feedback.
-
HI Team,
we are facing an issue that Keda is not scaling when we have unacked messages in the queue , currently we are using cloudampq which does not support any unencrypted connections i.e http so as per the Keda official documentation it is mentioned that we need to use http in order to include unacked messages as part of scaling.
could some one provide alternate solution what would be work around in order to scale the pods considering unacked messages .
error which we are getting with http:
2025-01-14T11:31:32Z ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "trainer", "scaledObject.Name": "predictions-0a8f3576-1-scaledobject", "scaler": "rabbitMQScaler", "error": "error inspecting rabbitMQ: Get "[http://user:[email protected]:5671/api/queues/%2F/q-prediction.0a8f3576-d177-4ea7-887e-35bed1115756.document-classification](http://user:[email protected]:5671/api/queues/%2F/q-prediction.0a8f3576-d177-4ea7-887e-35bed1115756.document-classification%5C)": net/http: HTTP/1.x transport connection broken: malformed HTTP response "AMQP\x00\x00\t\x01""}
Beta Was this translation helpful? Give feedback.
All reactions