Azure SNAT 耗尽 - 我如何知道它何时发生?

Azure SNAT exhaustion - how do I know when it is happening?

我们认为 Cloud Foundry 中的一组虚拟机存在 Azure SNAT 耗尽问题。机器不通过负载平衡器。 我已经阅读了这份文件: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections#snatexhaust

我想知道如何(如果可能)知道我们是否遇到了 SNAT 耗尽问题,而无需向 Microsoft 提交支持票。修复或预防 SNAT 问题不是我要问的。

谢谢,

I want to find out how, if possible, to know if we are hitting SNAT exhaustion issues

当SNAT端口资源耗尽时,出站流量失败。您可能会观察到出站连接失败,或者支持人员建议您耗尽 SNAT 端口。

出站连接在 Azure 门户上有 4-minute idle timeout. This timeout is not adjustable. UDP SNAT ports generally exhaust much faster than TCP SNAT ports due to the difference in the algorithm used. So you may check the timeout flows via capturing networking packages using Microsoft Network Monitor on the VM or use Network Watcher for packet capture

如果您在我的回复中有任何不清楚的地方,请随时告诉我。

我刚刚获得 Microsoft Azure 支持 phone。这个时候我们作为客户是没办法不开工单就看到SNAT耗尽的。

我已向 Microsoft 提出增强请求以启用对其的监视:https://feedback.azure.com/forums/231545-diagnostics-and-monitoring/suggestions/36274288-apim-load-balancer-metrics-to-view-snat-metrics-st

如果这听起来是个不错的解决方案,请务必投赞成票!

答案可能已过时。使用 Azure Standard LoadBalancer,你将能够看到以下 SNAT 指标。

  1. SNAT 连接数
  2. 分配的 SNAT 端口
  3. 使用的 SNAT 端口

这不适用于 Azure 基本负载均衡器,它需要支持票证才能获取有关 SNATS 的信息。

希望对您有所帮助。

对于 Azure WebApp,单击 诊断并解决问题,然后在搜索框中键入 snat 然后单击作为搜索结果显示的 SNAT 端口耗尽 项。