We are using azure function apps with consumption plan(integrated with service bus queues).
One of the app containing 4 functions and rest are having 1 to 2 functions.
We have set WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT
setting for each app to control the instances.
Apps which contains 4 and 2 functions are having 190 instances to process 2.9k calls(WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT
has been set to 100),
Even though this setting is preview feature it's working fine for some apps(3 to 9 instances to process 9.3k calls).
What I'm not able to understand is what may be the reason for having 190 instances? whether it is due to many functions in single app or it may due to any memory leak. Is there anyone faced the same problem with azure function apps before.
My application host.json settings are :
"serviceBus": {
"maxConcurrentCalls": 5,
"prefetchCount": 50,
"autoRenewTimeout": "00:05:00"
}
Thanks.