Hi, If there is a problem in the server or data center in 1 location, I am looking for such a system to continue working from the other location. And I still haven't figured out how to do it. Do you have a suggestion?
Hey
@Dogus
The biggest downside to cPanel servers, is that there is no current 'easy' way to replicate data / databases across two different servers.
There are however, some ways to get what you need:
Option 1) Global DNS Load Balancing. If you have a DNS host (e.g. cloudflare or NS1 etc) you could of course put up a load balancer on the domain name which will point traffic immediately to server 2 if server 1 is down. That part is relatively easy and it's not out of this world in terms of cost (
see Cloudflare - pricing is from $5 month per domain). The difficult part - again, is to ensure two remote servers can synchronise databases, emails, files, etc. The other downside to this is you are relying on your DNS provider - though rare, they do sometimes have outages (recently Cloudflare experienced downtime)
Option 2) Datacentre Load Balancing: If you use a provider such as Vultr or Digital Ocean (among many others) - they often offer datacentre loadbalancing with floating IPs - meaning you can have two machines that are "mirroring" each other inside a single datacentre - then if one machine goes down / overloads / blows up! in the datacentre, the second machine will continue to work. But the issue with this is it relies on the single datacentre and therefore is vulnerable to localised flooding, earthquakes, etc - rare, but it does happen.
Option 3) HA Web Host: Perhaps the easiest solution is to look for a hosting provider that offers 100% uptime and a guaranteed failover solution. You can look for them and I'm sure you'll find them. It takes all the headache away from you - but of course, you are "in their hands" and have no control (or visibility) over any of the "behind the scenes" working. These types of hosting options are not always the most cost effective either.
One way to achieve the cPanel data sync is via rsync and using an independent database (see Galera DB below) - but unless you have a lot of free time and able to learn this, you may wish to hire someone who can set it up for you.
If you do go down this road, please advise the journey / outcome as there are a lot of people who also want to do this.
https://features.cpanel.net/topic/built-in-load-balancing-replication-high-availability << cPanel disabled comments on this - one of the highest requested features over 8 yesars old (so don't hold you breath of a cPanel solution any time soon ;-).
Other Resources:
Technical tutorials, Q&A, events — This is an inclusive place where developers can find or lend support and discover new ways to contribute to the community.
www.digitalocean.com
Technical tutorials, Q&A, events — This is an inclusive place where developers can find or lend support and discover new ways to contribute to the community.
www.digitalocean.com
We are simplifying the cloud. One Login, 16 Countries, 27 Cities, Infinite Possibilities.
www.vultr.com
Cloudflare Load Balancing is a cloud-based load balancing solution that offers global and local traffic management, active health monitoring, and fast failover.
www.cloudflare.com
NS1 offers a powerful, flexible, and easy-to-use global traffic management solution for enterprises to optimize application traffic performance
ns1.com
In this article I'm going to teach you how you can utilize the Linux rsync command on either your VPS (Virtual Private Server) or dedicated server to transfer files remotely from another server that you have SSH access to.
www.inmotionhosting.com
The world's most advanced open source database cluster
galeracluster.com