Set up VPS for failover through CloudFlare.
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).
-
3931 112 6 1 Hello, I can implement this task, write to me, we will discuss all the details.
-
333 1 0 Hello!
I have reviewed your task regarding the organization of backup VPS-3 and synchronization with VPS-1 and VPS-2.
To better understand your needs and provide an accurate solution, I would like to clarify a few points:
Do you want new sites and databases on VPS-1 or VPS-2 to be automatically created on VPS-3, or will this be done manually during synchronization?
What synchronization interval is optimal for you (daily, every few hours)?
… What methods of receiving notifications about successful synchronization are convenient for you — email, Telegram, or other?
Are there any additional restrictions on VPN and user access on VPS-3?
After clarifying these details, I will be able to prepare a clear implementation plan and deadlines.
Thank you!
-
Последний пункт:
Обязательно реализация через CloudFlare (чтобы были скрытые IP адреса) уже противоречит пункту: 4. На VPS 1 и VPS 2 создать под домены (с прямыми IP, без Load Balancer).
Если выполнить пункт 4, то скрыть IP-сервера уже не получится по-умолчанию. -
Пункт:
Load Balancer на CF настроить так, чтобы я оплатил тариф как за 1 сайт (5.99$ на каждый аккаунт, с помощью чата ЧПТ посмотрел, так реально сделать через запись)
Насколько я помню, можно создать технический домен либо выбрать один домен из используемых, который будет основной и проверять доступность серверов через него в Load Balancer -
Для пункта:
5. На профиле VPN установить VPN - Amnezia VPN с настройками - без записи логов, максимальная безопасность.
Нужен чистый сервер, без панелей управления и сайтов. Установка Amnezia VPN не предусматривает установку на сервер, который уже настроен и работает, как хостинг для сайтов.
-