Health Check on Load Balancer Fails Does Not Work on TCP or HTTP

Posted November 26, 2017 4.2k views
NginxLoad BalancingUbuntu 16.04

My load-balancer is convinced my droplet is unhealthy and so blocking it. The droplet is running NGINX on Ubuntu 16.04. I can access the website that NGINX is hosting via the public IP or a domain pointed to that IP. And a floating IP works.

I’ve tried both HTTP and TCP for health-checks, neither works. Any suggestions?

  • I am having a very similar issue. Calling my server IPs with the address for healthcheck works fine directly, returns as expected, but the load balancer keeps telling me that healthchecks are failing.

  • For me, this works if the healthcheck is tcp:// but fails if it is I believe this may be related to the http healthcheck expecting a 200 response and the tcp healthcheck just pinging the port.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Good luck @dloker I eventually gave up and just went with a floating IP which is way cheaper but not ideal.