Why Azure Functions Event Hub Trigger not utilizing all host instances to process the messages?

Anonymous
2022-07-14T00:56:07.093+00:00

We have the following: - Azure Functions Event Hub Trigger Function - Language/Runtime: Python 3.9 - Resources are in the same subnet of the Virtual Network - Allowed access based on User Assigned Managed Identity - Azure Functions Premium Hosting Plan with event hub 32 partitions We identified that there are some unused host instances where few hosts used 100%. ![221852-uqtyz.png][1] Do anyone light me that why the Azure Functions Project is not utilizing all the hosts to process the messages/load from the Event Hub? [1]: /api/attachments/221852-uqtyz.png?platform=QnA

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
719 questions
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-07-19T05:54:23.27+00:00

    anonymous user ,
    Premium plan functions will make use of the other instances if the scale controller determines the instance(s) currently handling the events aren’t able to handle the load, regardless of the pre-warmed and minimum instances. So even though you have 5 in pre-warmed and minimum, it’ll start sending all the events to one instances and then load balance to the others once that one starts to be overwhelmed. This is how the scale controller load balances. If you look at the cpu utilization, the average cpu utilization remains at 67% and 57 %, only when they exceed 70% and remain for some time, the events will be routed to other instances.


0 additional answers

Sort by: Most helpful

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.