Why would a functions host stop for no apparent reason?

Teodora Gancheva 0 Reputation points
2025-02-20T12:42:45.2166667+00:00

I have an Azure app service that is running an eternal Durable Functions orchestration, as well as a couple of other orchestrations and several activities, on the cosumption plan. All runs rather smoothly most of the time, but on several occasions the function host stops for no apparent reason - no deployment, no changes in configuration or anything of the sort. Sometimes when that happens the app will somehow restart itself after 2-3 hours, but there have been cases where it won't come alive until manually restarted (from the Azure portal).

As a workaround to the above problem, I have tried creating a timer-triggered function in another app service that pings an HTTP function in the problematic app service, which in turn creates a new instance of the eternal orchestration. The problem with that is when the host is down, attempting to call the HTTP function gives back a 503 Service unavailable response.

I have the following coming up in diagnostics, so I am wondering what the causes for that behavior might be. User's image

Could it be that the host gets shut down because it consumes too much CPU and is hitting a quota of sorts, although I have never been able to find documentation anywhere that such quotas might even exist?

And what would be the recommended resolution for the situation? Splitting up functions across different app services? Going for a dedicated plan?

Any advice much appreciated,

Teodora Gancheva

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,441 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Divyesh Govaerdhanan 1,675 Reputation points
    2025-02-21T03:00:19.9066667+00:00

    Hello,

    Welcome to Microsoft Q&A,

    Running Durable Functions on an Azure Consumption Plan can sometimes lead to unexpected host shutdowns, especially with long-running or resource-intensive orchestrations.

    Resource Constraints on the Consumption Plan

    Potential Fixes:

    1. Upgrade to Premium Plan: The Premium Plan offers enhanced performance, VNET integration, and no idle timeouts, making it suitable for long-running functions.
    2. Optimize Function Code: Review your orchestrations and activities to ensure efficient resource usage, minimizing memory and CPU consumption.

    Please Upvote and Accept the Answer if it helps!!

    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.