Around March 10th, 2021 million of websites went offline as fire destroyed one of the four data centers of OVHcloud in France. According to internet monitors many government, banks and news portal sites went offline because of the fire.
So, if you don't have a disaster recovery plan in place, your site could end up with same fate. That's where High availability come into play.
The High Availability feature allows you to maintain 100% uptime for your sites. In this feature, CyberPanel Cloud will take care of creating 100% replica of your Main server to a secondary Fail over server. We will go one-step further and take care of DNS switch in case your Main server goes down so that you can sleep peacefully.
You need to be at least on Professional or Business plan to create clusters, read more here.
In simple words, High Availability is the takeover or replacement of the server or system by another system on its failure. Now, how CyberPanel Cloud is doing it and what things you need to take care of are mentioned below:
Setting up High Availability/Clustering now becomes very easy with CyberPanel Cloud. The process of setting up high availability is very simple and easy.
There are a few things you must have before setting up the High Availability cluster:
Visit CyberPanel Cloud Here.
Login using your credentials and if you don't have an account create a new one.
Read more about CyberPanel Cloud.
To set up the High Availability feature, first, you need to Add API Key in the cloud.
Read here on how to configure the Cloudflare API key.
Setting up High Availability is very easy and simple on CyberPanel Cloud. Just need to follow the steps mentioned below:
Before using this feature both main and fail over servers must be connected to the cloud (you can use the connect feature if CyberPanel is already installed or the Deploy feature to install CyberPanel on fresh OS)
Once you have 2 servers connected to cloud, move forward
2. Now you need to select the options.
3. After providing all information Press Create Cluster button.
The next screen will show you the status of your cluster along with real-time data from your cluster nodes.
Once servers are attached to cluster, you will get a Boot Cluster button. Click the button, once both Main and Fail over server are booted, your cluster is now successfully created.
Servers will boot and show you in logs once done.
Once the clusters are booted you don't need to do anything. Sit back and relax, CyberPanel Cloud will take care of everything and notify you when your main server is down and then perform a DNS switch.
If you have any question or need help setting up a cluster feel free to contact us via our help desk.
Warning: This feature is discontinued, visit How to Create High Availability Cluster in CyberPanel Cloud?
We will now set up highly available application on our cluster we just created in previous setup, if you've not created a cluster make sure to read Setting up Highly Available Cluster from Cloud Platform.
Manager Node IP: 192.168.1.1
Worker Node IP: 192.168.1.2
You need to make sure that DNS record of your domain is pointing to 192.168.1.1 (which is the IP of your Manager Node)
Once done, navigate to: https://platform.cyberpanel.net/ha/manage/<Cluster Name>/launchApplication
Replace Cluster Name with the name of your cluster.
Enter your domain and click Launch Application. Now you can open your browser and visit http://yourdomain.com:4000/
Here 4000 is the port we choose to expose, you can replace it with the port that you choose to expose. If you choose port 80, make sure its free and not occupied by any other process.
Data of this application resides on your Worker Node, you can login to CyberPanel on worker node and setup any application such as WordPress. (Your normal database will not work with such application as they are running from containers, you can create cloud database on amazon or setup remote access to your database)