Azure 应用服务 TCP/IP 端口耗尽

标签 azure azure-app-service-plans

我最近从 Azure 收到了关于达到我的应用服务中 TCP/IP 端口上限的“建议”。

TCP/IP ports near exhaustion Your app service plan containing app ****** is configured to use medium instances. The apps hosted in that App Service plan are using more than 90% of the 4096 available TCP/IP ports available per medium instance. You can upgrade the instance size to increase the outbound connection limit or configure connection pooling for more efficient use.

应用服务计划的限制(扩大规模)是否有差异?或者我可以配置我的应用服务以使用更多端口吗?或者有任何其他解决方案吗?

一个明显的解决方案是横向扩展,但由于 CPU 和内存使用率较低,如果不是必须的话,我宁愿不使用此选项。

作为背景,该服务是使用 .Net 4.6 通过 ASP.NET Core MVC 构建的 API。

最佳答案

是的,应用服务计划的限制(扩大)存在差异:

最大连接限制如下:

每个 B1/S1/P1 实例 1,920 个连接 每个 B2/S2/P2 实例 3,968 个连接 每个 B3/S3/P3 实例 8,064 个连接

关于:其他服务(Cassandra、MSSQL、RabbitMQ 等),但我也不确定这些连接计数 此服务调用还将导致 TCP 连接创建,并且也需要进行计数。

Azure 中的大多数服务都有自己的诊断和仪表板,我们可以在调试时将其关联起来,就像在我的例子中,MSSQL DTU 不足以容纳并发请求的数量,因此连接正在堆积。

来源:

https://blogs.technet.microsoft.com/latam/2015/06/01/how-to-deal-with-the-limits-of-azure-sql-database-maximum-logins/

https://blogs.msdn.microsoft.com/appserviceteam/2018/03/01/deep-dive-into-tcp-connections-in-app-service-diagnostics/

关于Azure 应用服务 TCP/IP 端口耗尽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40502757/

相关文章:

azure - Azure 服务主体可以更新自己的密码吗?

Azure REST API 获取分支返回 0 个分支

Azure 应用服务 - 如何在日志页面中检索标准输出?

azure - 数据湖分析 - 如何选择/插入列数较少的表?

.net - 如何确保新的自动缩放的 Azure 应用服务实例在处理流量之前处于正常状态?

Azure 应用服务和基础设施维护

web-config - 增加 110 秒的请求超时

azure - 自动扩展到 Azure 中的下一个应用程序服务计划级别

azure - Azure 应用服务计划中有多少个虚拟处理器?

python - 将 Azure Blob CSV 读取到 Python Pandas DF 中的问题