【问题标题】:Where should ServicePointManager.DefaultConnectionLimit be set in an Azure Function app?ServicePointManager.DefaultConnectionLimit 应在 Azure Function 应用程序中的何处设置?
【发布时间】:2018-02-16 06:20:57
【问题描述】:

最新版本的 Azure Functions 工具(版本 1.0.9)在启动时会生成以下警告:

ServicePointManager.DefaultConnectionLimit is set to the default value of 2. 
This can limit the connection throughput to services like Azure Storage. For 
more information, see https://aka.ms/webjobs-connections.

提供的链接中的信息建议在 Azure WebJob 的 Main 方法中设置此值。但是,函数没有 Main 方法。在 Azure Function App 中设置此值的最佳位置在哪里(尤其是在使用消费计划时)?

【问题讨论】:

  • 你对你的函数应用有什么计划?消费还是应用服务?
  • 哦,没想到这很重要。这是一个消费计划。

标签: azure azure-functions


【解决方案1】:

【讨论】:

  • 我明白了。感谢您的链接。我不明白的是,如果您无法更改它,为什么将提到的警告添加到本地 Azure Functions cli 工具中?
猜你喜欢
  • 2019-03-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-01-07
  • 1970-01-01
  • 2023-03-08
  • 1970-01-01
相关资源
最近更新 更多