Amazon Elastic Load Balancer is not closing the connection to the server

北战南征 提交于 2019-12-04 03:12:00

As OP shared with his edit, the issue of connections not getting closed can be resolved with a change of load balancer type. This answer focuses on why this change has such an affect?


There seems to be an issue within Classic Load Balancer (ELB). I've found the following posts with very similar issues;

It seems the issue stems from ELB not being able to detect the client dropping from a connection. Especially when back-end is supplying some sort of data in a periodical manner, e.g. live audio stream, heartbeat, etc.

There doesn't seem to be a way to disable the keep-alive setting of load balancers, yet, somehow, only with ELB this trouble occurs.

I couldn't find exact feature that is creating this behavioural difference between ELB & ALB. I think the reason is either due to;

  • Improved Health Checks in ALB, and/or
  • an internal structural difference that is not visible to us users, that somehow keeps this issue from happening on ALB

I think the issue resolves when Application Load Balancer (ALB) is used due to said improvements and it being much more flexible.

Check here for more on the differences between ELB, ALB, and NLB


ps. AWS support forums are terrible, all the good support & tips are paywalled and stored within PMs between them & their premium customers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!