AWS Application Load Balancing: Seeing extremely l

2019-08-24 03:19发布

From observer's perspective, symptoms are identical to the issue here Scenario is the same as well: Angular app which sends preflight requests to REST api, and preflight requests take in roughly 50% of times up to 1.3 seconds (illustration is the same as in the linked question).

Also, websocket was frequently timing out until socket-io finally succeeded in establishing connection. Problem was more pronounced in Chrome and less in Safari/Firefox.

However, we are using ALB and not ELB, and all our subnets are public.

2条回答
倾城 Initia
2楼-- · 2019-08-24 03:26

Solution we found working was that all subnets needed to go through same internet gateway - same route table was applied to all subnets.

When that was done, all requests started going through faster and websocket connects immediately without reconnecting.

查看更多
该账号已被封号
3楼-- · 2019-08-24 03:30

Had a similiar issue. The LB has to be set up to use at least 2 availability zones. You have to select which subnetwork in each AZ it should use. In my case, one of the networks had bad ACL settings that basically denied all traffic. This would mean that the service would seem to go down for a minute or so whenever DNS decided to give you the IP address of the non-functioning LB interface. It would then start working again after the DNS cache expired and you got the IP for the functioning interface.

查看更多
登录 后发表回答