kedacore/keda

Support message sessions in Azure Service Bus Scaler

Open

#1,479 opened on Jan 6, 2021

 (34 comments) (6 reactions) (0 assignees)Go (1,457 forks)auto 404
azurefeaturehelp wantedneeds-discussionscaler-azure-service-bus

Repository metrics

Stars
 (10,372 stars)
PR merge metrics
 (PR metrics pending)

Description

Use-Case

I have a large workload that is bound to a single session id. As a session can only be processed from a single listener (because it locks the session) scaling according to the number of messages in the queue is not... useful.

I've just added 620 messages to a queue all with the same session id and keda has scaled up the service to whopping 16 instances. But unfortunately 15 instances are doing nothing and 1 is working hard.

I'm not sure if you can interrogate the number of active sessions but if you can then...

Specification

  • Allow to specify the desired number of desired active sessions and scale based on that instead of the number of messages in a queue.

Contributor guide