Dshiz
Dshiz

Reputation: 3341

Health check never firing for UDP load balancer

I have a load balancer for two VM instances in an instance group that load balances UDP ports 162 and 514. I created a health check for the instance group, but the health check is never firing based on my review of the logs.

The VM instances support HTTPS port 443 traffic and SSH port 22. I have tried both HTTPS / 443 and TCP / 443, as well as SSL and TCP / 22. The health check never fires.

I added the Google Cloud health check IP ranges to the ingress firewall rule for these VMs as well: 130.211.0.0/22 and 35.191.0.0/16. This had no effect.

What am I missing with my setup? I'll be happy to update this question with further details if it needs more information.

Upvotes: 0

Views: 451

Answers (1)

James S
James S

Reputation: 1314

Health check issues can come from a lot of different ways and here are the things that you should consider:

  • The target instance being monitored is going offline (Could be instance failure, network connectivity or software related issues)
  • Firewall or Network issues that prevents the health check from reaching the target instance (i.e. the ports to where the health checks are listening to are blocked)
  • Service Failures - if the application running within the instance is not working properly/returning error messages then it will be marked as unhealthy. Or if there are no existing service that are running within the instance to where the health checks are listening to.
  • Resource issues - If the target instances are experiencing high resource utilization, it may not be able to respond to the health check requests within the set time which leads to the health check rendering it unhealthy.
  • Load Balancer Configuration issues - Health check problems can also result from misconfigured forwarding rules or an incorrect health check setup, such as not listening to the correct backend service.

Upvotes: 0

Related Questions