To redirect to another server if the primary is not available, how?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
Rarely, but still, there is such situation: all sites are rented on a VDS, it may happen that it is not available. Is it possible to make it so that if this happens, the client got into another server where he would have said that at the moment those problems?
by | 6 views

4 Answers

0 like 0 dislike
At the server level DNS this can be solved — the easiest way to give two addresses, some customers not receiving a reply from the first turn to the second, but some is not smart enough, and some for its some kind of understanding will soon be knocking on the second, so probably not for the plugs, and mirror/replica/cluster, that is, for more or less equal servers (if not equal, you can use round robin dns or other methods of balancing and/or failover).
\r
Well, the easiest way of seeing that the server is, and when the stand is unknown, replace the IP of the server on the IP in the stub DNS records — after a while, all clients will send to the stub.
by
0 like 0 dislike
You asked a question, the solution of which, in each case, I specialists with a salary over 100k rubles.
by
0 like 0 dislike
You asked a question, the solution of which, in each case, I specialists with a salary over 100k rubles.
by
0 like 0 dislike
only if it is "intermediary" between your VDS-coy and customers. For example, a reverse proxy (nginx, lighttpd, varnish, etc.), or a piece of iron-balancer (cisco ace, crescendo, f5, citrix, etc.), which can determine that the backend went and where to redirect any traffic. Usually on a backup server. But then the point of failure is the node. Further — only by means of BGP.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,842 users