question

VN-7254 avatar image
0 Votes"
VN-7254 asked ·

Does azure function app use 1 instance of app service plan for 1 instance of the function app

I currently have the following setup:

1 Function App using App Service hosting plan
App service Plan has a minimum of 2 instances and a max of 10 instances.

Questions:
During load where we need 2 instances(for eg) of function app does the function app instances get distributed as below:

1st instance of function app running on instance 1 of ASP
2nd instance of function app running on instance 2 of ASP

or will we have both the function app instances(1 & 2) running on instance 1 of ASP based on the resources available(ASP Plan)


azure-functions
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@VN-7254 Thank you for the question. We will review and update at the earliest.

0 Votes 0 ·

Looking forward for the update. Thank you

0 Votes 0 ·

based on information in Get started with Autoscale in Azure my understanding is that it will be distributed across instance 1 and instance 2. This is the basic idea behind auto-scaling so I would be quite surprised if it won't work like that.


0 Votes 0 ·

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered ·

Hello @VN-7254 if multiple functions are deployed to the same App Service Plan, each of them one instance of each function app running per instance of an ASP. You may refer to https://docs.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-get-started#create-your-first-autoscale-setting

Please let us know whether this helps. If yes, please "Accept the answer" and "Upvote " so that it would help others in the community.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.