- Newest
- Most votes
- Most comments
The behavior you're experiencing is not the expected behavior based on the AWS documentation. According to the information provided, when an Auto Scaling group is configured to use Elastic Load Balancing (ELB) health checks, it should consider an instance unhealthy if any of the attached load balancers or target groups report it as unhealthy.
In your scenario, with the Auto Scaling group's health check type set to ELB and one of the two target groups reporting the instance as unhealthy, the Auto Scaling group should mark the instance as unhealthy and initiate the replacement process.
The expected behavior is that if any one of the attached load balancers or target groups reports an instance as unhealthy, the Auto Scaling group should replace the instance, even if others report it as healthy. This is designed to ensure that instances are fully functional across all attached load balancing components.
Given that your Auto Scaling group is not behaving as expected, there are a few things you should check:
- Verify that the ELB health check is correctly enabled for your Auto Scaling group.
- Ensure that both target groups are properly attached to the Auto Scaling group.
- Check the health check settings for both target groups to make sure they are configured correctly.
- Review the Auto Scaling group's settings to confirm there are no suspended processes that might be preventing instance replacement.
If after verifying these points, the behavior persists, it may indeed be a bug or an undocumented limitation. In this case, it would be advisable to contact AWS support for further investigation and clarification.
It's important to note that the Auto Scaling group should not consider an instance healthy as long as at least one target group reports it as healthy. The documented behavior clearly states that an instance should be replaced if any attached load balancer or target group reports it as unhealthy.
Sources
Prepare to attach an Elastic Load Balancing load balancer - Amazon EC2 Auto Scaling
Troubleshoot a Classic Load Balancer: Health checks - Elastic Load Balancing
Relevant content
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 3 years ago
