Quick change servers?


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
10 views
Brothers and sisters having experience with a quick change of configuration of the web server, please answer the following question:

There is a web service that has regular visitors and a server A (VPS, power, etc don't matter), and I want this server to change to a more powerful, more weak (underline) server B that has a different DNS address. Actually a question: how to make the DNS change time reduced to a minimum or in General, is there a way to bypass this timeout and hold a "hot" change of servers.

In advance very grateful for the answers.
by | 10 views

4 Answers

0 like 0 dislike
At the time of changing the server put to server a with nginx which will send the requests to server B.
by
0 like 0 dislike
+1 for nginx (any other tool of this type)
And if it means DNS to do this, you need to set the minimum TTL value for A record, 60-300 seconds will be fine.
by
0 like 0 dislike
in TTL — if you cut, do it in advance, because the TTL as well as the records themselves areas remain in the DNS cache
by
0 like 0 dislike
any web server can proxy requests, not just nginx )
\r
speaking of hosts — no need to do that. Web server without using DNS. You can have any web server to ask "show website vkontakte.ru".
\r
In proxy_pass IP and port of the backend specify.
\r
Well, Yes — traffic has received it will be symmetrical.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 13, 2019 by DeniSidorenko
110,608 questions
257,186 answers
0 comments
27,943 users