Would like more control over scaling durable functions
See original GitHub issueWould be great if we could have more control over how azure functions scale when the performance of running a fanout orchestration is important.
See this post
Would be great if we could have something like this, rough and would need much more thought but something along these lines.
var activityBatchRequest = new DurableFunctionBatchRequest<TResult>
{
ActivityName = "ComputeItems",
ApproximateCpuTimePerActivity = new TimeSpan(0, 0, 0, 10),
RequestedExecutionTime = new TimeSpan(0, 0, 0, 20),
Activities = activities
};
var tasks = orchestrationContext.CallActivityBatchAsync<IEnumerable<TResult>(activityBatchRequest);
This way Azure could calculate roughly how many vm’s to scale out to so it can attempt to meet the users request time
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Performance and scale in Durable Functions - Azure
The Scale Controller monitors how long messages and tasks have to wait before they are processed. Based on these latencies it can decide...
Read more >How Azure Durable Functions scale
The Azure Functions scale controller monitors the latency of peeking messages from the work item queue and increases/decreases the number of ...
Read more >Azure (Durable) Functions - Managing parallelism
MaxConcurrentOrchestratorFunctions controls how many orchestrator functions can be loaded into memory at any given time.
Read more >Performance Tuning of Azure Durable Functions
Performance Tuning of Azure Durable Functions · 1. Work item Queue(s) · 2. Control Queue(s) · Queue polling. The durable task extension implements ......
Read more >Custom Autoscaling with Durable Functions
Custom Autoscaling with Durable Functions · Scaler function applies the scaling decisions to the Azure resource, App Service Plan in my case.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ianadavies
Hi, after poking around a bit I found that you can achieve some control with a Premium Plan.
By sending the following requests you can control the following. Note: It requires the Contributor role for plan and the functions app respectively
Instance Count:
Pre-warmed instance count:
It doesn’t help you much if you’re still set on Consumption Plan though.
@cgillum You mentioned here that you had plans to make this possible later this year. Any news on this?
I have opened this ticket on StackOverflow https://stackoverflow.com/questions/51657553/azure-durable-functions-scaling/51659347
This is becoming a real problem for us now as we are ready to demo our software to potential clients and I was expecting to be able to scale to 200 nodes since the consumption plan supported this.
Is there anyway we can connect and show you the problems we are having ?
Thanks