What happens to in-progress requests when Azure Automatic scaling decreases instances in Azure App Service?

Quan Tran Minh 20 Reputation points
2024-07-04T04:41:38.5166667+00:00

I am using Automatic scaling in Azure App Service. (refer How to enable automatic scaling - Azure App Service | Microsoft Learn). My web app has problems with many requests not completing their job when Azure automatically decreases instances. So, What happens to in-progress requests when Azure Automatic scaling decreases instances in Azure App Service? Any event or any log can show me what and when a specified instance will be killed. How much timeout for a long request finished before the instance will be killed?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,273 questions
0 comments No comments
{count} votes

Accepted answer
  1. akinbade abiola 7,355 Reputation points
    2024-07-04T07:47:49.4833333+00:00

    Hello Quan Tran Minh,

    Thanks for your question.

    App Service will follow IIS default timeouts. If a scale-in operation is requested, the instance being spun down will process any ongoing requests for 90 seconds before being terminated. During this time, any new incoming requests won't be sent to that server.

    All scaling events will be logged in the activity log.

    Would recommend you test your application’s behavior during scaling operations and monitor metrics to fine-tune your autoscale settings.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


0 additional answers

Sort by: Most helpful