Christopher Schmidt
Christopher Schmidt

Reputation: 25

AWS ECS: Unhealthy containers

In my AWS account, I have the following setup:

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

Answers (1)

Si Tran
Si Tran

Reputation: 49

Did you configure an advanced health check of your target group for service b?

it should look like this enter image description here

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

Related Questions