ALB showing incorrect unhealthy targets, only on monitoring tab
My ALB is showing my EC2 instances as healthy, 0 unhealthy hosts. Health checks are working fine on all targets. But when I swith to the Monitoring tab, the graph shows 75% are unhealthy. I've tried deregistering / registering instances and the graph behaves erraticaly, while the number of healthy / unhealthy hosts are correct. I send metrics to Datadog, and there it shows unhealty hosts (while none are unhealthy). All hosts are receiving traffic with no problem. Somebody has a hint of what's going on? Thank you.
Posted Oct 31, 2022, 7:32 PM UTC
13
I've run into similar things before. In our case we had an ASG that was registering a large number of instances to a large number of target groups for an NLB. When we would downscale the ASG, the service linked role for the ASG would make so many calls to the elb api's that it would get throttled and you would get this exact behavior where the target group console would show healthy instances, but the metric would report unhealthy instances. In our case you could see the unhealthy instances with the cli
aws elbv2 describe-target-health. Eventually it would clear up as the ASG eventually retried the call, and it didn't seem to impact our service. Check cloudtrail to see if any of the events from user 'AutoScaling' are getting throttled or denied.Thank you!
You're welcome!