question

GangaS-6917 avatar image
0 Votes"
GangaS-6917 asked MughundhanRaveendran-MSFT answered

Timeout in Function App hosted in App Service plan

Hi,

My http triggered function app is hosted in an App Service plan and wanted to increase the default timeout.

As per the documents , I understand that App service plan default time out is 30 minutes and we have to enable ' Always On' under settings. I also read that regardless of the function app timeout setting, 230 seconds is the maximum amount of time that an HTTP triggered function can take to respond to a request. This is because of the default idle timeout of Azure Load Balancer.

Is my understanding correct? Please let me know how to increase the timeout for an http trigger function app in App service plan.

Thanks,
Ganga

azure-functionsazure-app-configuration
5 |1600 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.

1 Answer

MughundhanRaveendran-MSFT avatar image
1 Vote"
MughundhanRaveendran-MSFT answered

@GangaS-6917 ,

Thanks for reaching out to Q&A.

Yes. Your understanding is correct. You can increase the timeout value by changing "functionTimeout" value in host.json file. Please refer to this article for reference :
https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout

As mentioned in your question, for HTTP triggers, there is a 230 seconds response timeout that is set at the load balancer which cannot be changed. I have explained clearly Function architecture and why the 230 seconds timeout cannot be changed in the below thread. I would suggest you to go through it.

https://docs.microsoft.com/en-us/answers/questions/758823/httptrigger-response-timeout.html

I hope this helps!

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

5 |1600 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.