question

BjrnJnsson-5105 avatar image
0 Votes"
BjrnJnsson-5105 asked JayaC-MSFT edited

Azure functions http trigger in app service freeze and but still get request

When running our azure functions http triggers in consumption plan everything works as expected, the functions instances that are not buzy gets the requests and when checking the metrics for those all request are done within expected time.
After moving the same azure functions with http trigger to an app service plan some of the instances freezes and stays froozen even after the functionTimeout. Also new still tries to do requests against those froozen instances which makes the requests timeout.

So wonder why those freezes in the first place (which they dont do in consumption plan), and why not the "load balancer" this send requests to the froozen?

azure-functions
· 2
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.

Hello @BjrnJnsson-5105 Welcome to Microsoft QnA. Thanks for the question.

Could you explain why you think it got frozen? are you referring to any logs?
I have asked for additional information via private session.

0 Votes 0 ·

Hi,
Looking at the matrics the response time was 4 minutes all the time (functionTimout was set to 10 minutes). But it never went down from 4 minutes (not even after 10 minutes).
Also all requests against that instance timed out.

0 Votes 0 ·

1 Answer

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

Hello @BjrnJnsson-5105, Thank you for the details. As you have deleted the problematic application there will be no data so that we could backtrack, it will be difficult to explain why.
However, if you experience it again, please provide the screen shots of the metrices you are referring or any relevant logs and check if the “ARR Affinity” settings is enabled for your application. Click on Platform Features > Configuration. You will find the ARR affinity setting under General Settings. If enabled try to disable it and monitor.


Disable-Session-affinity-cookie-(ARR-cookie)-for-Azure-web-apps.html

https://docs.microsoft.com/en-us/answers/questions/39015/azure-app-service-arr-affinity-auto-scaling-statef.html

Also, If you think you need more specific assistance , please open a support ticket with Microsoft Support if you have a subscription which allows you to do so. Otherwise, send an email with subject line “Attn:Jaya” to AzCommunity[at]Microsoft[dot]com referencing this thread so that we can discuss offline.


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.