Mobile app version of vmapp.org
Login or Join
Carla537

: CloudFlare DNS: Downtime failover host My company uses CloudFlare for its DNS, but as our site is HTTPS-secured and we're on the free plan, we can't utilize CloudFlare's CDN services. Our host

@Carla537

Posted in: #Cloudflare #Dns #Downtime

My company uses CloudFlare for its DNS, but as our site is HTTPS-secured and we're on the free plan, we can't utilize CloudFlare's CDN services.

Our host has fairly rare but not insignificant downtime. We can't migrate servers just yet, and I'd like to be able to either have the main domain redirect to the status domain, or simply resolve to the alternative status host in the event of downtime so users will stop bugging me asking if the site is down.

Is this possible to do automatically using the free CloudFlare plan, or will I have to manually edit my DNS every time the site goes down?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Carla537

2 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

There is automated solution for this written in the programming language Go, it can be found at GitHub (https://github.com/rasmusj-se/cloudflare-failover).

To use this you will have to do a couple of things:


Pull or download the repository and it's dependencies
Install Go and build the project
Extract your CloudFlare API key and add this to the configuration file "cloudflare.conf".
Setup your endpoint check, primary and backup server destination in the folder "cecks/", see "example.com.conf" for example config.
Run the program at a dedicated server or at your backup server

10% popularity Vote Up Vote Down


 

@Sims2060225

I've had a similar problem before and have solved it using CloudFlare's API. I had a Dedicated server and a large VPS for backup. Mirrored the data on the two servers, and used CloudFlare to switch between them (DNS Failover) if the Dedicated went down. Initially did reboots via SSH/IPMI to verify and it worked as configured.

Here's the link to the article: blog.booru.org/?p=12

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme