'Connection timeout when use ELB with Tomcat

I configured an ELB for HTTPS with imported SSL and registered an instance running Tomcat expose HTTPS port 8443 with the same SSL.

When I use postman to test some APIs with the endpoint is ELP, it sometimes returns Connection timeout after a long time. However, if I use the endpoint is IP of instance, APIs always work and return immediately.

Thanks in advance!



Solution 1:[1]

I resolved this problem. LB didn't work stably because I created LB with an AZ and register instances in another AZ. Therefore, I create a new LB with correct AZs and it worked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Leo Aslan