Function App Consumption plan CPU useage

djoshi 1 Reputation point
2022-07-05T15:58:48.403+00:00

Hi

I recently had an issue where a durable function stopped working as intended.

When I looked into it in-depth I found that my CPU usage was > 80%.

From my understanding, Azure functions in consumption plan are meant to expand to accomate higher demands.

Is there something in a project that will restrict and memory usage and qty of instances?

Thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,016 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,401 Reputation points
    2022-07-13T06:55:18.5+00:00

    Hi @djoshi ,

    Thanks for reaching out to Q&A.

    Usually high CPU utlization would cause performance issues and at times there would be some timeout exception as the function would take longer time to execute. The scaling behavior in consumption plan and premium plan is controlled by the Scale controller. This is responsible to add and remove the number of instances for the function app.

    Please note that, the scaling decisions taken by the scale controller are not just based on the CPU/ memory utilization, it is a combination of cpu,memory utlization, incoming load of requests in case of http triggers, number of messages in the queue in case of service bus/storage queue etc. So you will have to check the incoming load and memory utilization along with the cpu utilization.

    I hope this answers your question

    0 comments No comments