I have a website that is currently hosted in a single DigitalOcean region. DO are great, but occasionally they have routing issues in a region and the website goes down.
The stack is very simple - a webserver, and a redis instance.
I would like to setup a failover in a different region, so if one region has issues, visitors will automatically be redirected to the failover, but I am not sure how to do this.
My initial thought was to use a load balancer, but since the load balancer would have to live in one of the regions, it defeats the point.
We use cloudflare for our dns, and they support a basic round robin system if you enter two IP addresses for the same domain, but I want all traffic to be directed to the primary node, unless it is unavailable.
What is the simplest way to set this up?