- Newest
- Most votes
- Most comments
It seems like there are a few issues occurring here:
You have multiple ports exposed from each EC2 instance, but only the health check port (9100) is showing as healthy. Health checks need to be configured separately for each exposed port.
By placing the same EC2 instances in multiple target groups, the application routing is getting confused and causing login loops. Each instance should only be registered to one target group.
Using separate target groups per ALB is a good approach. But each target group needs its own set of EC2 instances.
To resolve this, I would recommend:
Create a separate target group for each exposed port Configure health checks appropriately for each target group Register unique EC2 instances to each target group Use listener rules to route to the correct target group based on port Consider using Application Load Balancer path-based routing if possible instead of separate target groups This will ensure each port/application route is load balanced independently without conflicts.
Thank you for the feedback. For testing, focused on 1 ec2. I have created multiple target group. specifically each target group for specific path@exposed port. So now I able to login with no issue. Next challenge were, how to route specific route if i go to example http:<alb url>/<something>. in this case, all other than / , it will return 302. the "/ " sitting at the bottom of the rule, default rule number. it is related how to assign rule number@weigh? can you advise on this.Thank you
Relevant content
- asked 7 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago