我遇到一个问题,我的应用程序崩溃了,这似乎与我的ELB上的“估计的活动连接”增加有关。我一直在浏览ELB日志,并且很难协调日志中看到的内容和客户端告诉他们发送的内容。
一个例子:
客户端A(源IP 192.168.0.100)指出,它们正在“使用64个线程”发送并发请求到我的API,但是当我检查给定小时的ELB日志时,我只会看到出现4-8个唯一端口带有其源IP:
2018-11-10T12:00:42 MyLoadBalancer 192.168.0.100:20635 10.65.65.1:80...
2018-11-10T12:00:42 MyLoadBalancer 192.168.0.100:20647 10.65.65.1:80...
2018-11-10T12:00:42 MyLoadBalancer 192.168.0.100:20649 10.65.65.1:80...
2018-11-10T12:00:42 MyLoadBalancer 192.168.0.100:20638 10.65.65.1:80...
...
2018-11-10T12:00:43 MyLoadBalancer 192.168.0.100:20647 10.65.65.1:80...
2018-11-10T12:00:44 MyLoadBalancer 192.168.0.100:20635 10.65.65.1:80...
相比之下,客户端B(源IP 172.16.0.100)出现在我的ELB日志中,看起来它们正在同时打开50个以上的TCP连接:
2018-11-10T12:00:43 MyLoadBalancer 172.16.0.100:36500 10.65.65.1:80...
2018-11-10T12:00:43 MyLoadBalancer 172.16.0.100:36501 10.65.65.1:80...
2018-11-10T12:00:43 MyLoadBalancer 172.16.0.100:36502 10.65.65.1:80...
2018-11-10T12:00:43 MyLoadBalancer 172.16.0.100:36503 10.65.65.1:80...
....
2018-11-10T12:00:43 MyLoadBalancer 172.16.0.100:36550 10.65.65.1:80...
问题:
谢谢!