【问题标题】:Connection to AWS Network ELB is either connecting right away or taking a long time to connect连接到 AWS 网络 ELB 正在立即连接或需要很长时间才能连接
【发布时间】:2021-12-06 00:26:59
【问题描述】:

我遇到了一个问题,即与 AWS 网络 ELB 的连接要么立即连接,要么需要很长时间才能连接。我从 Internet 主机通过 telnet 进行了检查,输出如下:

➜  ~ telnet host.elb.ap-northeast-1.amazonaws.com 8090
Trying 54.238.219.184...
telnet: connect to address 54.238.219.184: Operation timed out
Trying 35.74.146.43...
telnet: connect to address 35.74.146.43: Operation timed out
Trying 35.73.158.173...
Connected to host.elb.ap-northeast-1.amazonaws.com.
Escape character is '^]'.
^CConnection closed by foreign host.

【问题讨论】:

    标签: amazon-web-services networking amazon-ec2 tcp amazon-elb


    【解决方案1】:

    显然问题是由于我在可用区中设置了三个子网,而我的目标 EC2 仅在一个区域中。网络 ELB 似乎在为网络 ELB 生成的三个 IP 地址之间执行某种循环机制,三个子网中有两个无法到达目标。

    解决方案是创建一个网络 ELB,其中只有一个子网/可用区与目标 EC2 的子网匹配。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-24
      • 1970-01-01
      相关资源
      最近更新 更多