KEDA scales my Az Function pods to my number of Event Hub partitions #2442
Replies: 2 comments 2 replies
-
Here lies the misunderstanding, you'll need a pod per partition to process the events as it cannot listen to all partitions at once but I'll leave this up to @ahmelsayed to verify. |
Beta Was this translation helpful? Give feedback.
-
@tomkerkhove, is this still a limitation that the eventhub scaler only scales to the partion count? We have implmented the partitionbasedloadbalancer for the eventhub so that a pod can take ownership of the partition and then relisquish it. Given that the event stream comes though faster than the pod processing of the event with the various complexity of the business process we are implmenting I would (similar to @nansravn ) like to have X partions and have either 2X or 3X the pod count to process the incoming events. If I take your approach of scaling the pod's to Zero then I would need to have 32 partions to have from 0 to 32 pods scaling at any given time. Microsofts doc for your reference https://learn.microsoft.com/en-us/azure/event-hubs/event-processor-balance-partition-load The alternative would be to create a pod that checked the message count of the partitions and use the storage queue scaler or similar to orchestrate scaling. So basically I have the same requriement/issue as @nansravn |
Beta Was this translation helpful? Give feedback.
-
I'm using KEDA to scale Azure Functions (running on AKS) consuming events from Event Hub. I have a conceptual doubt about how to configure properly the pod autoscaler.
This is my manifest:
Beta Was this translation helpful? Give feedback.
All reactions