MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Confused by warmupTrigger docs - how to actually use in practice? #120341

Open empowerNate opened 7 months ago

empowerNate commented 7 months ago

I'm quite confused by the warmupTrigger docs for Python. I want to ensure our function apps are warm/ready before they get requests and I thought this could be used. But it's not clear how to use warmupTrigger if we already have a function app with a httpTrigger.

As far as I can tell the warmup trigger can be used for scaling out to have instances warm before use, but then you can't use any other triggers in the function. If we have multiple functions within one app with different triggers, I'm not sure what the best way to lazy load data/models with the two functions, when the warmup trigger may not always run.

Docs are here and here on GH.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SaibabaBalapur-MSFT commented 7 months ago

@empowerNate Thanks for your feedback! We will investigate and update as appropriate.

empowerNate commented 7 months ago

So I figured out how to use it somewhat; add it as another function in the function app. However, even after doing that it doesn't seem to be firing.

empowerNate commented 7 months ago

Ok, I figured out that I think this trigger only works on the elastic premium plan, not dedicated or other plans. Is that correct? If so I think that should be noted in the docs. It's also a bit confusing because the dedicated plan has premium instances like P3V3, but they are a different "premium" vs the EP premium instances on the elastic premium plan.