There is VPS - 1 (Netherlands, managed by FastPanel), on which about 12 websites and 2 databases have been added.
There is VPS - 2 (Netherlands, managed by FastPanel), on which 2 websites and 2 databases have been added so far, and in the future, the number will increase to 20.
There is VPS - 3 (Sweden, managed by FastPanel) - it has 10 websites, which are the least important.
All domains are managed through dash.cloudflare.com (2 accounts, not all domains are in one account).
The task is to make VPS - 3 a backup VPS, which in case of downtime of VPS 1 or VPS 2, for example, technical work or problems in the data center) - redirects traffic to the backup VPS, and after VPS 1 or VPS 2 resumes operation, returns the traffic.
Additional requirements:
On VPS - 3 create 3 users: VPS1, VPS2, VPN (FastPanel main user and FTP user).
Once every N time (for example, once a day), VPS 3 accesses VPS -1 and VPS - 2, retrieves data and updates it on VPS 3 (overwrites files, folders, and databases to always keep them up to date).
Configure Load Balancer on CF so that I pay the rate as for 1 website ($5.99 for each account, I checked with the chat, it can be done through registration)
On VPS 1 and VPS 2 create subdomains (with direct IPs, without Load Balancer) on the specified domains (I will inform) trekking.domain.net place the specified (I will inform) phrases, this is necessary for the hoster to receive a notification that the VPS is unavailable and resolve the issue, that is, conditionally subdomains to track whether the VPS has come up.
On the VPN profile install VPN - Amnezia VPN with settings - no log recording, maximum security
The websites have traffic, implementation without downtime. There are a couple of projects on which testing can be conducted.
Explain the system of operation, that is, if I create a new website and a new database on VPS-1 or VPS - 2, do I also create a new website and a new database with the same name on VPS-3?
Implement a notification of successful synchronization, that is, so that I know that all data on the backup VPS-3 is current.
Implementation through CloudFlare is mandatory (to have hidden IP addresses).