You are deploying a V4 Azure Function App on a Consumption plan. The Function App contains an Azure Service Bus queue-triggered function that integrates with a legacy on-premises system. During periods of high traffic, the Function App scales out and opens too many concurrent connections to the legacy system, causing it to crash. You need to limit the scale-out of the Function App to a maximum of 10 instances while maintaining the Consumption plan to minimize costs. Which configuration should you apply?
- AAdd an application setting named WEBSITES_MAX_INSTANCE_LIMIT with a value of 10.
- Add an application setting named WEBSITE_MAX_DYNAMIC_SCALE_OUT with a value of 10.Cevap
- CMigrate the Function App to a Dedicated (App Service) plan and configure an autoscale rule to cap instances at 10.
- DIn the host.json file, set the maxConcurrentCalls property of the Service Bus trigger to 10.
Cevap
Add an application setting named WEBSITE_MAX_DYNAMIC_SCALE_OUT with a value of 10.
Adding the WEBSITE_MAX_DYNAMIC_SCALE_OUT application setting with a value of 10 enforces a maximum scale-out limit of 10 instances on the serverless Consumption plan. This prevents the app from spawning too many concurrent instances and overloading the legacy on-premises system while preserving serverless cost benefits.
Adım Adım Çözüm
Anahtar Kavram
Configuring scale-out limits for Azure Functions hosted on a Consumption plan
Tahmini Süre:1m 30s