Azure Function Flex Consumption routes HTTP requests to new cold instances while an always-ready instance is idle

Alon Catz 20 Reputation points
2026-11-22T15:07:25.9633333+00:00

Our Function App on the Flex Consumption plan has one always-ready instance for the http group, and HTTP concurrency stays far below the per-instance limit. Flex still keeps starting new on-demand instances and sends user requests to them. Each such first request pays a cold start of 2–11 s. In 16 of 27 cases since we enabled always-ready, another HTTP-serving instance was alive and idle, with no request in flight anywhere in the app, when Flex started a new instance and routed the request there.

We would like to understand why this happens, and how to configure the app so that requests go to the warm instance instead of new cold ones.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.