내용으로 건너뛰기

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠