Azure Container App - Replica constantly one & it wont scale with Azure Service bus

Gareth Glanville 0 Reputation points
2023-09-14T22:09:10.8266667+00:00

Hi there,

I have been playing around with a container app, I created a revision where the scale is 0-5 with a scale rule of type custom (**azure-servicebus)
**
I created a secret within the container app for the service bus connection string.

I then added a authentication reference with the secret & a trigger of "connection"

The meta data is following the keda documentation:
activationMessageCount: 1
connectionFromEnv: secretName
nameSpace: ServiceBusNameSpace
queueName: ServiceBusQueueName

But when creating the revision, it always states it is running. I would think with the min scale set to 0 it would be not running until the trigger is set off from the servicebus queue?

Another issue is that it does not scale at all. When sending 30 messages via the queue the metric sits @ 1 replica count.

Please help! I can not find anyone else having this issue - so I am guessing it is just a setup issue.

Thanks in advance!

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
636 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
444 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Singh, Rahul 6 Reputation points
    2024-06-29T02:58:19.32+00:00

    I was facing the same issue, when only one replica was running even though I had multiple messages on the queue. I added messageCount to 1 in metadata of event driven scaling and then it started working. Looks like KEDA although mentiones it as optional, uses somehow to scale the replicas.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.