I have a website that has been down several times in the last few weeks due to core infastructure service provider failures. The first was Cloudflare a few weeks ago, and right now Google Cloud is down.
I do have a backup site that does not rely on these infastructures. Is there a way I can create a rule to automatically direct users to the backup when it is detected the primary is offline?
I don’t know if there’s a Cloudflare setting or dashboard feature to do this, however you could always set up a scheduled health check script and utilise the Cloudflare API to change settings as needed.
This seems like a useful idea, thank you.
A Cloudflare setting would be preferred though! I haven’t yet used the Cloudflare API, and it’d save me some development time… Will get looking.
Thank you again.
Use Cloudflare load balancing and set the second address as the fallback pool.