Reputation: 25
In my AWS account, I have the following setup:
service-a
and service-b
)service-a
binds the port on 443service-b
binds the port on 8888 (I needed to do that, because 443 might be already allocated by service-a
)
Both services are reachable with HTTPS protocol However:
service-b
is always unhealthy.
I tried to add a new HTTPS Listener on the ALB which listens on port 8888 and this listener forwards the traffic to my service-b-target-group as expected.
Does anyone have any clue?
Thanks in advance!
Upvotes: 2
Views: 3428
Reputation: 49
Did you configure an advanced health check of your target group for service b?
The default setting of the target group is "traffic port". If you have configured an path-based routing, the traffic port is the same for both target groups.
Request on url.com:443/service-a
and url.com:443/service-b
will try to do health checks on port 443 on both target groups
For service-b you should define an advanced health check on a specific port, because your service listens on that port (8888 in your case)
Upvotes: -1