An Azure service that provides an event-driven serverless compute platform.
hi Alon Catz & thx for join me at Q&A platform,
ur observations are interesting because Microsoft's Flex Consumption documentation explicitly states that always-ready instances process function executions first, with on-demand instances added when scaling requires them.
So if an always-ready HTTP instance was genuinely healthy, available, and below its concurrency limit, repeatedly routing requests to newly created instances deserves investigation. I'd first verify the effective http=1 always-ready configuration and HTTP concurrency settings under Scale and concurrency.
Then correlate the 16 affected requests with Application Insights telemetry, including UTC timestamps, cloud_RoleInstance, request duration, and host startup events. It's important to distinguish an instance being allocated from actually being ready to accept requests. There's no documented setting to force individual HTTP requests onto a particular always-ready instance. Increasing concurrency may reduce unnecessary scale-out, but it won't explain why an idle, healthy instance was bypassed.
Given your detailed reproduction, I'd open an Azure Functions support case requesting an investigation of Flex Consumption HTTP scale-controller decisions and request routing.
The key question for engineering is why additional instances were provisioned when existing always-ready capacity appeared sufficient.
I wouldn't classify this as expected behavior without that explanation.
Best regards,
Alex
π¬ P.S. Did this help? Mark it as the solution: it keeps me motivated!
β Follow me on Q&A for more answers
π And feel free to visit my blog β https://ctrlaltdel.blog/