且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Azure是否限制传出连接

更新时间:2023-10-28 15:34:40

我们过去也遇到过类似的问题,并且看起来虚拟机与外部IP的出站连接限制为1024.当内部Azure IP位于同一数据中心时,它们将不受此限制,因为内部路由表能够处理这些连接.

We have hit similar issues in the past, and looks like the VMs have an outbound connection limit of 1024 to an external IP. Internal Azure IPs, when they are in the same data center won't have this limitation since internal routing tables are able to handle those connections.

这里有很多相关信息: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections#snatexhaust

There is a lot of relevant information here: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections#snatexhaust

总结要点:

  1. 如果没有,请尝试为您的VM分配一个公共IP.仅当您运行少量VM时,这才可行.
  2. 如果要在VNET/负载均衡器中运行多个IP,请尝试添加多个IP.每个外部IP都会使您的连接限制倍增.
  3. 尝试优化您的连接使用情况,即,使连接保持活动状态的时间更长,以实现高效的管道传输.