Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Help Me Fix Instance Group Unhealthy Status

Hi everyone, I need some help regarding an issue with my instance group on Google Cloud Platform.

I'm currently using an instance group with a load balancer and autoscaling enabled. However, the instance keeps being marked as unhealthy by the health check, even though port 30120 is open, and the instance itself seems to be running fine. Here are the health check settings:

  • Protocol: TCP
  • Port: 30120
  • Interval: 15 seconds
  • Timeout: 10 seconds
  • Healthy threshold: 2 consecutive successes
  • Unhealthy threshold: 3 consecutive failures

The instance group only has one instance, and its health status remains unhealthy, even though I can manually access it via its external IP. I've tried restarting the instance and tweaking some configurations, but the issue persists.

Has anyone experienced a similar issue or know how to resolve this? Any advice would be greatly appreciated! Thanks in advance!

0 3 323
3 REPLIES 3

Hi @mutiiaaaww ,

Welcome to Google Cloud Community!

Although port 30120 is open, does it have an active service listening to it? The health check won't pass trough without an active port. I would recommend to either check 30120 activity or just point the hc to an active listened port.

Hi , 

Health check probes from Google Cloud use specific IP address ranges, so your network's firewall rules must allow traffic from these ranges to the instance on the health check's port.
Refer to this doc : 

hi @mutiiaaaww 

as per nawaz suggestion, you should whitelist the IP in your firewall in order to do health checks , follow those and let us know