How to proceeded with troubleshooting long startup times with Azure Application service for Linux?
We recently switched from application service for Windows to application services for Linux in Azure and are delighted with the improved performance we have noticed in almost every aspect. However there is one area that has actually gone the wrong way regarding performance. The app service for Linux startup time is extremely slow compared to its Windows counterpart. Deploys from github now uses an irritating amount of time when we deploy to a staging slot, start it up and then swap it with the production slot and its the startup process that makes up the bulk of the excess time that we now see used. We see the same tendencies if we simply start the staging or production slot manually in our dev environment. Before the move from Windows to Linux the startup time for the app varied between 50 and and 80 second. After the move we see startup times around 5 minutes. Because of all the other improvements we have experienced going back is not an option so anything we can find that might help decreasing the startup time would just be a bonus.
So my question is does anyone have any tips or tricks regarding minimizing app service for Linux startup time? Are there any configuration options that should be checked that might lead to this?
Since there is no other problem with this than the irritation of having to wait for the startup I can't really defend making a support case about it so any relevant info would be greatly appreciated.
The app services that we use in our dev environment have this setup:
App plan: P1v3
Instance count: 1
App(s) / Slots: 1 / 1
OS: Linux
Publishing model: Code
Runtime Stack: Dotnetcore - 9.0
Always on: Yes
Azure Frontdoor enabled
I have tried to scan through the app logs but have so far not found anything that stands out as a problem. It just looks like the startup goes through all the hoops and simply takes the time it needs. I have also tried bombarding ChatGPT with this to the point where I think it’s harboring a grudge against me :)