Problem with application load balance that I cannot solve

0

We have an application load balancer with one instance but scales to 8. My problem is this. I have three mobile applications that log into the instances with POST and json and one of the applications can no longer log in. It logs into the test server that is not on the load balancer, but on the production server, it gives 502 bad gateway sporadically at first but now all the time. The server is not returning bad data because it works sometimes, it seems to be a problem with the load balancer not forwarding requests to the appropriate url. Can somebody give me a clue where to start dissecting this. I have looked at the code, I have looked at the application, and I have looked at the server, and the problem seems to lay with the load balancer just not cooperating for no reason given. Like I said, the other two applications work fine and they all share similar code. I just. found out about it from apple about the problem with the login and this 502 bad gateway error will not go away. Any help with 502 gateway errors would be appreciated. I have increased the timeout on the server, I have tried rebuild the load balancer which worked yesterday for about four hours then quit. I am at just a loss. Thanks in advance.

1개 답변
1

First thing you need to do is definitively figure out if it is the ALB, or the instance's response to the ALB causing the 502 errors.

Use Cloud watch metrics.

If data points show under the HTTPCode_ELB_502_Count metric, then your ALB is issue.

If errors show under the HTTPCode_Target_5XX_Count metric, then your target instance is the problem.

From there there is additional troubleshooting you can do . . .

This is a good reference. https://aws.amazon.com/premiumsupport/knowledge-center/elb-alb-troubleshoot-502-errors/

profile pictureAWS
답변함 일 년 전

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

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

질문 답변하기에 대한 가이드라인

관련 콘텐츠