I have a digital ocean server that uses cloudflare for DNS. If for some reason my DO server goes down I want to redirect the traffic to a DO static site app. My first thought is to use a Load balancer. Is this the right idea? I understand that a Load balancer can perform health checks on a server and reroute traffic in between the DNS and your server to other available servers.
The main reason I am posting is that when I look into loadbalancer docs on DO, what I read is that it redirects the next available server for the location. This confuses me a little. What I really want is just a health check for the main server and if it goes down to reroute all traffic to the static DO app site.
Is a load balancer still the correct solution?
Any specific configuration I need to do for the load balancer to get it to work for my situation?