Azure Functions:是否建议将 gcServer 用于消费计划?

Azure Functions: Is using gcServer recommended for consumption plans?

我正在查看可以针对 Cosmos DB 制定的 perf improvements 列表。我的 API 以消费模式托管在 Function 应用程序中。是否建议 Azure Functions 打开 gcServer

有关 gcServer here 的更多信息。

For single-processor computers, the default workstation garbage collection should be the fastest option. Either workstation or server can be used for two-processor computers. Server garbage collection should be the fastest option for more than two processors. Most commonly, multiprocessor server systems disable server GC and use workstation GC instead when many instances of a server app run on the same machine.

消耗计划中一个活动实例中有多少个处理器运行?

How many processors run in an active instance in a consumption plan?

消耗计划中 Functions 主机的每个实例限制为 1.5 GB 内存和一个 CPU。所以只有 1 个处理器。更详细的可以参考this article.