Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.92k stars 442 forks source link

Usage of WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED #10445

Open auslavs opened 2 weeks ago

auslavs commented 2 weeks ago

Is your question related to a specific version? If so, please specify:

.NET 8 isolate

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

Either F# or C#

Question

In this Guide for running C# Azure Functions in the isolated worker model it instructs to set the WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED setting to 1 to improve cold starts, reading this it seems as though it should be applied to all dotnet-isolated function apps.

However, this doc implies that it is only applicable to apps running in a consumption plan.

Furthermore, #9588 suggest that this setting is not longer required.

So I guess I'm just seeking some clarification on if this setting is still relevant and how it should be used. The less settings we are using will help our functions to be more maintainable in the future.

Thanks

kshyju commented 2 weeks ago

@auslavs Thanks for bringing this up. It looks like the first doc link you mentioned needs to be updated to reflect the latest state of things. This app setting entry is automatically set by the platform now. So, no user action needed. We will follow up on updating the docs, as needed.

@mattchenderson FYI

auslavs commented 2 weeks ago

Thanks @kshyju! I will let our team know.