Skip to main content

Change load balancer alias to the interface IP’s in Route53.

This run book is a recovery action to mitigate slow performance of ingress traffic incident when an interface fails in an availability zone (AZ), clients time out when they attempt to connect to one of unhealthy NLB EIPs

Request AWS to restart the health check

AWS confirmed the root cause of the incident as, “the health checking subsystem did not correctly detect some of your targets as unhealthy, which resulted in clients timing out when they attempted to connect to one of your NLB EIPs".

AWS mitigated the impact by restarting the health checking service, which caused the target health to be updated appropriately. Cloud-platform team don’t have access to restart the health check service, request AWS to restart it for us.

If restarting still has not resolved the issue, look at changing the load balancer alias.

Change load balancer alias

Steps to change the alias to healthy EIPs

1) Find the NLB EIPs of the ingress host which have a performance issue

For this example, we will use “”

Get the external load balancer used by the ingress

kubectl -n kuberos get ingress kuberos -o=jsonpath="{.items[*]['status.loadBalancer']}" | jq .

Get the EIPs of the external load balancer


The output shows the EIPs of the NLB has address has address has address

2) Find the unhealthy NLB EIP

Now we have all of the information we need to make a cURL call over to the external load balancer EIPs.

Run this on 3 EIPs of the NLB. If everything is working correctly it would return OK. If it return “Timeout”, then it is most likely an unhealthy external load balancer EIP.

while :; do (curl -o/dev/null -m1 -k -H 'Host:' 2>/dev/null && echo "OK") || echo "Timeout" ; sleep 1 ; done

3) Change the load balancer alias to the healthy interface IPs in Route53.

In the Route53 section of the AWS console, Find the “A” and “TXT” records of the ingress host in the hosted zone.    A   Weighted    100  TXT Weighted    100

Edit the route53 TXT record and update the owner, set the incorrect owner field, so external-dns couldn’t revert the information in the A record. "heritage=external-dns,external-dns/owner=yy-CCCC-BBBB,external-dns/resource=ingress/kuberos/kuberos"

Edit the “A” record and uncheck the alias option, add 2 healthy IP’s in the value filed and save the record. Repeat this on all the hosts using the affected NLB.

This page was last reviewed on 10 April 2024. It needs to be reviewed again on 10 July 2024 by the page owner #cloud-platform .
This page was set to be reviewed before 10 July 2024 by the page owner #cloud-platform. This might mean the content is out of date.