Putting ALb-NLB-ALB route for requests is giving 502 for application

0

We had a primary ALB listening to all out apps mapped through R53 records. Now we have listener rule crunch as ALB doesn't support more rules above 100. So we had been proposed a solution where we can put a NLB under primary ALB and then secondary ALB under NLB. So flow will be:

Requests--->R53--->ALB1--->NLB--->ALB2--->Apps

ALB1 has a default rule which allows unmatched requests to pass through to NLB and then ultimately to ALB2 where new rules are evaluated.

Rule configuration at ALB1 is: Default rule --Forwardto-->

Rule at NLB: TCP-443 listener rule --ForwardTo--> ALB2 TG with fargate application ip

But we're seeing intermittent 502 responses on primary ALB while testing. We are not seeing any 502 logging on ALB2. So possibly NLB is ending it as we have seen multiple TArget reset count happening at NLB in metrics. Also, nothing is getting logged in application logs.

We did another testing where we directly routed traffic to ALB2 through R53, we didn't see any 502 responses there.

Any suggestion, how to go about the debugging it?

I can give more details if needed.

已提問 2 年前檢視次數 323 次
1 個回答
0

Hello,

Please refer the link: https://aws.amazon.com/premiumsupport/knowledge-center/elb-alb-troubleshoot-502-errors/ for the troubleshooting of 502 errors in detail.

profile pictureAWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南