我正在浏览 perf improvements 的列表可以针对 Cosmos DB
进行制作。我的 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 .
关于Azure函数: Is using gcServer recommended for consumption plans?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64690969/