Report this

What is the reason for this report?

How do I define a health check endpoint?

Posted on October 11, 2019

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.



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!

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.

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.