sjkp
sjkp

Reputation: 895

Azure function set maximum concurrency

Is it possible to set the maximum number of concurrently running function instances when using the consumption plan. I'm aware that I can set some max numbers in the host.json - but that is for a single function instance. So even when I set

{
  "queues": {
    "batchSize": 1,    
    "newBatchThreshold": 1
  }
}

It just starts to scale out to multiple instances. This would be perfect if the my backend could handle the load, but in my case it can't so I would like function app to have a max number of parallelism set, e.g. max 5 instances.

Upvotes: 0

Views: 1634

Answers (1)

Matt Mason
Matt Mason

Reputation: 2726

This is not possible at present, though feel free to file an issue on github.

See this post for other discussion on concurrency, your only option from a functions perspective is to switch to dedicated.

Upvotes: 1

Related Questions