CloudF[ai]l[u]are Lacks Failover Support

Discussion in 'The Pub (Off topic discussion)' started by drmike, Oct 25, 2014.

  1. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    With all the recent site attacks elsewhere and continued finger pointing about CloudFlare, I went over there finally to check their stuff out.

    Major problem, they have no support for failover.   Meaning no way to tell CF to point elsewhere when your backend server can't be reached.

    Am I missing something about how to accomplish such an obvious thing with CloudFlare?  Absent such support, no wonder why things behind CF go down and stay down.
     
  2. XFS_Duke

    XFS_Duke XFuse Solutions, LLC Verified Provider

    389
    149
    Jun 7, 2013
    Yea, that is one of the things I've seen a lot. I'm a CloudFlare partner even though I'm not advertised on their site, not sure why but I'm asking soon, and I always thought that it should of been included in their plans. Possibly to send it to a StatusPage.IO page or something...

    Which reminds me, sorry to thread jack, but any other services such as StatusPage.io available that is cheaper? lol
     
  3. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    The failover piece is just entirely obvious.  It's one of the features I most use with reverse proxy logic in Nginx...  So conceptually the ability exists and isn't too hard to graft onto things.

    One of their developers said about some DNS Zone hack ability, but that seems manual in nature.

    API exists and is CURL friendly, so perhaps I'll monkey with that seeing if I can build something in testing to see such swap a downed backend with something else.

    Guess I understand why sites go down even while CF is up front.... Not hard to punt a site offline when no failover logic there.
     
  4. Munzy

    Munzy Active Member

    432
    205
    Aug 13, 2014
    You can specify multiple backend servers, and it will do very basic failover and round robin, but I mean "BASIC"

    You can use there api and monitor your backend server and swap to failover, which is the best method.

    Sorry about grammar. 
     
    drmike likes this.
  5. AMDbuilder

    AMDbuilder Active Member Verified Provider

    152
    42
    Jan 3, 2014
    It would be nice if they supported failover, but until then solutions such as these get the job done.





    @XFS_Duke I'm still looking for one, granted it might be easier to just build our own from the looks of things.
     
    drmike likes this.
  6. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    It just dawned on me why a certain site has a "cluster"... That is to say multiple A record frontends....  That's the hackaround to CF lacking failover...
     
  7. howardsl2

    howardsl2 New Member

    61
    31
    Jan 28, 2014
    You can achieve this using Monit. Works great for me. Please see:

    DNS failover for cloudflare with monit
    http://blog.booru.org/?p=12

    Note that the DIUP API method for CloudFlare was deprecated a couple years ago. It is no longer in their documentation. Replace it with a currently supported method if you are concerned about this.
     
    Last edited by a moderator: Oct 25, 2014
    drmike and DomainBop like this.
  8. XFS_Duke

    XFS_Duke XFuse Solutions, LLC Verified Provider

    389
    149
    Jun 7, 2013
    Yea, I was thinking about it...
     
  9. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    Is that your code?  Thank you if so... Good to see it and to inspire something if I don't just wholesale try to use it as-is.

    That's entirely the direction I was headed!
     
  10. willie

    willie Active Member

    760
    207
    May 24, 2013
    I don't use CF but I thought the basic idea with these services is your monitoring (run by you or them) tracks which of your servers is up, and pokes CF's API if some of your servers fail, to take them out of the load balancing mix.
     
  11. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    Indeed that's right.

    Self rolling things is fine and all.  DIY route ads some complexity and costs.  Looking at 2 different severs minimum (3 really to be sane), then a fourth for the monitoring / API tie in.   Starts to add up.

    I mean honestly, some monitoring and failover for $5-10 a month and I'd pay CF something maybe.
     
  12. mikho

    mikho Not to be taken seriously, ever!

    963
    253
    May 15, 2013
    drmike likes this.
  13. howardsl2

    howardsl2 New Member

    61
    31
    Jan 28, 2014
    Those are not my code, hehe. I learned this method when @INIZ mentioned it in an older thread on LET. The code (and blog) was written by someone else on the Internet.
     
    Last edited by a moderator: Oct 26, 2014
    drmike likes this.
  14. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Yup Cloudflare lacks some features.

    They are pushing more into the DDoS protection business and lose sight of their core DNS business.

    Just look at DNS Made Easy.

     
  15. Steven F

    Steven F New Member Verified Provider

    475
    147
    Jun 27, 2013
    Yeah, but your costs just went from $0.00 a year to $35 a year.
     
  16. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    I've always been a paid DNSMADEEASY ANNUAL customer.

    The $4.95 per year per domain essentially for failover, it is well worth it and reasonably priced.

    Fact is, I expect to pay something for a real service.  I am happy to actually --- within reason of course.