⬆️ ⬇️

DNS based fault tolerance

Inside one data center, fault tolerance is easy to organize - there are a lot of tools and techniques.

And what if you need to organize fault tolerance on the basis of several data centers?



Below I will give, in my opinion, an elegant and very cheap solution, of course not without drawbacks.



The point is that each data center has its own NS server that gives the IP of its data center.

')

Now in pictures, imho so clearer and clearer ...



And so, what happens when the browser tries to open a web page (simplified version):







If DNS does not respond, then the dns client accesses the following ns server:







Zone settings for each data center.







Here it can be seen that in some data centers fronts can be more than 1.



In general, I talked about the idea. And from it you can wind a lot of interesting things.



Advantages:



Disadvantages:





PS Be sure to set in the zone file:

$ TTL 60; 1 minutes

Source: https://habr.com/ru/post/177145/



All Articles