google-compute-engine"/>
  • 13
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

Over the weekend, the GCP LB flagged one of our instances as unheathly. Nothing had changed, no redeployments and the other instances are fine.

I'm using a TCP healthcheck, the following turns 0 as expected.

nc localhost 80 -z; echo $?

How do I debug why GCP considers a node unhealthy?

UPDATE:

I changed the healthcheck to SSL and then back to TCP80 and now Google considers the node healthy. This is a little concerning.

The most common cause of health check failure is to bind a service only to the instance's external IP address and not on the load balancer's address.

You need to make your server process listen to all the configured addresses on the host. That way the health check will be operational for the load balancer’s external address.

You will find extensive info on how to debug health-checks in load balancing on Google cloud Platform here.

  • 3
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags