GCE Http负载平衡器没有达到实例 – 不健康

我按照这里的说明来设置负载平衡器:

https://cloud.google.com/nodejs/getting-started/run-on-compute-engine#multiple_instances

我的实例工作正常,他们可以通过inst.ance.ip.addr:8080访问,并发送一个200根

负载平衡器显示:

错误:服务器错误

服务器遇到临时错误,无法完成您的请求。 请在30秒后重试。

此外健康检查总是返回不健康:

$ gcloud compute backend-services get-health api-service

说明:

后端: https : //www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instanceGroups/api-server status:healthStatus: – healthState:UNHEALTHY实例: https:/ /www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instances/api-server-jg2e port:8080 – healthState:UNHEALTHY实例: https://www.googleapis .com / compute / v1 / projects / ##### / zones / us-central1 -f / instances / api-server-taxd port:8080 kind:compute#backendServiceGroupHealth

我重复了20次安装过程,从创build模板到防火墙规则。 这样做完全没有错误。 我在Google云端控制台的用户界面中进行了validation。

我要疯了。

提交票据并完成响应后,提供debugging博客条目。

https://cloudplatform.googleblog.com/2015/07/Debugging-Health-Checks-in-Load-Balancing-on-Google-Compute-Engine.html

我们的问题结束了与“失败2”。 重新启动服务器后,必要的路线不在那里。 但是,做完之后:

/etc/init.d/google-address-manager restart 

必要的路线被安置了,健康检查是好的,并且服务然后通过公开访问是可利用的。

我从中抓起补丁

https://github.com/GoogleCloudPlatform/compute-image-packages/releases

并安装了启动脚本和守护程序包。

希望有所帮助。

补充说明:我们在这个时候正在运行Debian 8