VPS.NET Cloud Community: DNS failover based on something other than ping... - VPS.NET Cloud Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

DNS failover based on something other than ping... Rate Topic: -----

#1 User is offline   TCC-Mark 

  • I Got Nodes
  • Pip
  • Group: Customers
  • Posts: 5
  • Joined: 30-March 10

Posted 21 November 2011 - 11:37 PM

Hi guys,

I've been playing around with a failover system for VPS, but one scenario I'm considering won't be caught by the DNS failover I've put in place. I don't want to go down the route of having three servers for failover so DNS failover is the best option I think.

What I could do with, though, is being able to control DNS failover using something other than ping. In the past, my VPS has gone into read only mode where it can't write to the database (of course) which crashes all of the websites, but it still responds to pings. In this instance, of course, DNS failover isn't going to trigger.

Is there a way to get failover to work by checking a custom webpage (with a back end script) on the server, for a 1 or 0, or something along those lines?

Cheers,

Mark.
0

#2 User is offline   Miikka 

  • I Got Nodes
  • PipPipPip
  • Group: Customers
  • Posts: 71
  • Joined: 29-June 10

Posted 22 November 2011 - 04:21 AM

Create a daemon which periodically will write to the disk, if the write operation fails then it would block pings from the testing servers to trigger failover. That's what I did previously when I was using DNS failover.

This post has been edited by Miikka: 22 November 2011 - 04:22 AM

0

#3 User is offline   TCC-Mark 

  • I Got Nodes
  • Pip
  • Group: Customers
  • Posts: 5
  • Joined: 30-March 10

Posted 24 November 2011 - 01:01 PM

Miikka, that's a really good idea, thank you!

In fact, I could make the daemon do anything I wanted by way of checks and then block pings as appropriate - brilliant!

Just out of interest, though, can the VPS.net guys confirm if there is a more official way?

I was also wondering what the timing between ping check is... sometimes I've had issues where the failover / failback doesn't seem to occur as rapidly as I'd hope. I know there is a 60 second propagation time on DNS records for failover.

Cheers,

Mark.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users