Performance drop off in Azure function elastic premium plan

George Aggrey 21 Reputation points
2021-06-24T14:24:50.887+00:00

I have decided to try the premium plan to avoid cold start performance penalties. However I have noticed that performance still fades if a function is inactive for a small period. Am I missing some configuration?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,306 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-06-29T12:42:34.387+00:00

    @George Aggrey Premium Plan tackles cold starts by having at-least one instance active and then at-least one-prewarmed (until the max scale-out limit) which are instances that have already been started up.

    So, after being inactive for a while, the number of instances go down and if there is a sudden surge in requests, more than what the warmed instances can handle could cause performance issues while the app is scaled out to the required amount.

    But since the number of ready and pre-warmed instances can be configured, you will just have to configure them accordingly.

    0 comments No comments

  2. George Aggrey 21 Reputation points
    2021-07-01T05:10:17.87+00:00

    In this case there could have been no performance surge. I have one straw function with which I performed a series of tests. In the first test I run it every 20 minutes, second test every minute and lastly every 5 seconds. For all plans the first call after a period of inactivity was always significantly slower. I went to the trouble of noting the process ID of the instance.

    0 comments No comments

  3. George Aggrey 21 Reputation points
    2021-07-01T05:22:51.153+00:00

    The dedicated plan performed the best as we would expect, but there was still difference. I am looking to keep latency well below 100ms from the get go.

    0 comments No comments