X
X
XRave2021-08-26 07:26:11
System administration
XRave, 2021-08-26 07:26:11

How to make a copy of the site on the second server?

There is a site in a closed network on wordpress, you need to make a copy on the second server, so that when one server is turned off, the site works from the second, and when the first one returns to the server, everything is synchronized with it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-08-26
@XRave

You do database replication, a distributed network FS for files, scripts or some software implement failover in the form of switching DNS A-records and starting on the second database server for writing. Optionally, you make a balancer somewhere, then you don’t have to switch DNS and wait until the client’s cache runs out, but an additional point of failure appears.

M
Mikhail Lyalin, 2021-08-26
@mr_jok

as an option:
on the main and backup servers, organize access to the content servers through a proxy (nginx), and the proxy on the backup server redirects requests to the main content server. In an emergency, it switches to its own content server. You can again raise the proxy a little.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question