Question

How do I define a health check endpoint?

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!

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