Failover Setup for My Web Server

I have bought two servers; the primary server is in Digital Ocean and the secondary server is in AWS, "My question is, if the primary server is down, the domain should point to the secondary server. what process can I follow?

If both servers can be active at the same time and you have a proxied A/AAAA record pointing to each, if the one server is offline then Cloudflare will try the other record…

If you want to use the primary server exclusively unless it goes down, or have more complex monitoring needs than “offline”, use…

I have used this method but the traffic randomly points to the secondary server sometime, it takes down time, any option for failover method?

As mentioned, if your requirements aren’t suitable for the DNS method, use the load balancer.

OK, Thanks can you share any documents regarding this, with us as a guide?

Same link as I posted above…

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.