跳至内容

CloudFront to ALB connection

1

Hi,
I set up CloudFront to serve static front-end from S3 and need some dynamic back-end as well. So, I set up redirection for some requests to ALB as origin (ALB runs Lambda) with cache disabled. Direst requests to ALB work fine and fast (~200ms), but when requests go to CF, only ~50% really work. For other 50% CF returns 502 and ALB doesn't receive any requests.
My location is close to ALB region, so delays shouldn't be.
Tried adjusting TLS versions, forwarding to ALB "native" dns as well as to custom subdomain. The result is the same: half of the times connection doesn't happen. When it happens - it works fast.

已提问 6 年前689 查看次数

1 回答
0

Found the issue. As ALB now forces to add two subnets and I was setting up qa website, I added second randomly and that second was private SN. That's why approx 50% calls failed.
Really, AWS shouldn't force to add second subnet. For prod it is a good thing, but for qa just brings troubles.

Edited by: Corwin on Aug 28, 2020 10:18 AM

已回答 6 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。