Question

How do I define a health check endpoint?

Posted October 11, 2019 374 views
Load Balancing

Hi:

I’m going through the documentation for how to setup load balancing with DO (https://www.digitalocean.com/docs/networking/load-balancers/overview/) and I read there’s a possibility to define my own health check endpoints.

Is this something that I need to configure while setting up the LB?

Thanks.

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.

2 answers

Hello,

You can setup the health checks during the setup of the Load Balancer, but you could also set that up even after the Load Balancer has been created. You would be able to change all of the settings at any time.

Regards,
Bobby

Thanks! I may have asked the wrong question.

What I need to know is what constitutes a sane healthcheck.

For instance, I just created a LB, set it to use two instances configured via a tag.

It recognized them just fine but it’s saying they’re both down when in fact they’re perfectly healthy.

I didn’t change anything about the default config which reads
http://0.0.0.0:80/

Should I just use any URL which will return 200?

Thanks!

Submit an Answer