2 load balancers calling each other in the same VPC

0

I have 2 load balancers: elb-server-1 and elb-server-2. In my elb-server-1, there's an API that makes a request to elb-server-2 (microservice architecture). Sometimes, it works. Sometimes, the network can't be reached from server1 to server2. For security group, I allow all traffic for both inbound and outbound. Note: when restarting the server, they can connect again, but then can't connect. I'm not sure about this behavior and how to fix it. It can't be related to quotas because I only make a few requests in a day. How to resolve this?

2回答
1
承認された回答

That's weird! After hours of debugging, I figured that using org.apache.http.client.HttpClient to call another endpoint somehow timeout after couple requests. I changed to RestTemplate and it seems to resolve the issues. I still don't know about the root cause though.

回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
0

After couple of debugs, I figured that there's probably nothing wrong with the routing between 2 ELBs. The server2 has logics to send multiple messages to SNS topic. 1 Message is fine, but the 2nd message got timeout and somehow after that, the server1 can't call the server2 again and keep timeout until I restarted both server. So there's probably something wrong with sending multiple SNS messages in 1 API.

回答済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ