Simple HA/HP clustering Using Only DNS 26
holviala writes "I cooked up a way to achieve high-availability and high-performance clustering using nothing but a few strangely configured dns zones. In case someone else is interested in an extremely easy clustering solution, I wrote a document about it. It's a bit technical, but the included examples should make it clear for anyone who's used to configuring dns. And yes, the linked site is clustered too, so... ummm... no need to be gentle :-)."
well, not really HA, is it? (Score:5, Interesting)
Face it, you do HA if your business depends on it, and would you really want to rely on a DNS hack in that case?
Having said that - Cool Hack Dude!
Re:well, not really HA, is it? (Score:4, Interesting)
True, which is why I called it "simple". But with this setup you only need to monitor local processes and services, and if those die only shut down the nameserver. No need for complicated setups where you need to decide if it was the application of the network that died.
Face it, you do HA if your business depends on it, and would you really want to rely on a DNS hack in that case?
My business, yes, I'd rely on this. I do "offical" HA for living for customers who don't like hacks like this. But that's something I'd personally never use, not even if I'd own a million billion zillion dollar company.
Then again, I suffer from the Not Invented Here -syndrome. Guess I'd make a bad leader: "You'll use my DNS hack or you're fired!" :-)
Re:well, not really HA, is it? (Score:2)
There's a nice executive position opening up in less than 4 years. You seem to share a couple ideas with the current executive, maybe you should apply.
P.S. If you're anti-Bush, please take no offense, I'm just joking. If you're pro-Bush, well, let's not go there.
You don't change the serial numbers.... (Score:2)
"The serials should always be the same on all nodes." ... "But the most serious limitation are the buggy DNS servers around the world. This setup assumes that a DNS server or resolver obeys the expire time of a zone record (the 60 seconds used above). Unfortunatly, there are a lot of servers out there which don't do that."
Aren't other DNS servers allowed to look at your SOA serial number, notice it hasn't changed, and not bother doing any other work? Isn't
Re:You don't change the serial numbers.... (Score:2)
I'm glad you told me that - now I can go and take down the setup that has proven to work well....
Yeah, they could check the SOA but they don't. The reason I want all SOAs to be the same is that no matter what, the SOA won't decrease. Basically this setup is the same as the traditional rr dns, but with dead node detection.
It
Re:You don't change the serial numbers.... (Score:2)
Second, if you are still a customer of that ISP you could do a test easily enough to see if they still cache the information beyond the expiration. (Maybe even if you are not a customer, depending
Re:well, not really HA, is it? (Score:1)
A hack doesn't have to be unreliable. The debian stable tree has programs with hacks in their configs, but they've been deemed stable and are trusted. Really, the only thing separating a hack from an accepted practice is how widespread it's use is.
Sounds like you just want someone to blame... or flame?
Re:well, not really HA, is it? (Score:2)
I work at a broker dealer where we have a set of machines that sit on two different ISPs, and this is the technique we use in case one line goes down.
Re:Sorry, you lose (Score:2)
Re:Sorry, you lose (Score:2)
One comment (Score:3, Informative)
Re:One comment (Score:2)
Good point. It's all fixed now...
DNS caching? (Score:2, Interesting)
Re:DNS caching? (Score:2)
Re:DNS caching? (Score:1)
Re:DNS caching? (Score:1)
What about client programs that cache DNS lookups (I think some web browsers do this)?
Many web browsers do, nscd does, DNS caches do...
Speaking of DNS caches, think about the case when an ISP is providing DNS for their customers - even cycling once per minute isn't good for load-balancing the hits routed via a large DNS cache. Further, when I used to run DNS for a large ISP, I set a minimum timeout for data, because I explicitly did NOT want my caches pulling zone data once per minute. (I set it to
Quite clever (Score:2, Insightful)
Re:Quite clever (Score:1)
What's complex about Heartbeat/Ldirectord (Score:2)
Took me about 3 hours to read through the docs, google for examples and setup a 2-Load Balancer/3-Node Cluster, using downloaded packages from ultramonkey.org
With a 30 sec deadtime, full takeover takes about 1-2 minutes.
Re:What's complex about Heartbeat/Ldirectord (Score:3, Informative)
I'm not sure I'd use this guy's method, but it's interesting nonetheless.
This isn't clustering.... (Score:2)
This is just HA load-balancing of your inbound web traffic. Clustering is what happens on the back end between the servers, which the articles doesn't cover at all, presumably because in the example case the servers are just serving static content over http, and all that's needed to "cluster" it is to copy your changes to both machines when you change the static data.
The hard part of clustering is getting real HA and/or Loadbalancing for non-trivial content. Imagine if the websrever behind Kimmy's DNS se
This technique is not new (Score:2)
OK, how about this article [rpanetwork.co.uk] from December 2002 (see diagram and description on page 4).