Cpanel HA Configuration with Loadbalancer

vanilla

Active Member
Dec 20, 2020
32
3
8
Switzerland
cPanel Access Level
Root Administrator
Hi there

Is there a known best practise for this setup?

  • 2 Servers for the same service => seen in WHM as 1 Server
  • Centralised WHM Change- and Configuration Management - Modules, Services, Server Version and cPanel Version
My Idea is, that i could place bofore the 2 Servers a Loadbalancer. And when i plan to maintnance on of them, the full trafic would i redirect to server 1, when i'm on server 2 updating/change stuff. Test everything and would then to the same for server 1.

So that i got no Downtime and everything would be online for the customer.

The strange part for me would be the Data Storage, since cPanel route everything to / home. It would be quiet cool, if the Server would be separate and use the same Data Storage.

I'm currently on Azure and HA is there a thing. but don't know if cPanel support this.
 

gnusys

Well-Known Member
Jan 18, 2013
52
13
58
cPanel Access Level
DataCenter Provider
You could easily sync the /home and MySQL data to make the hosted websites High available, but to make WHM/cPanel itself High available, it should be supported by the cPanel daemon which I don't think it does as of now. You may use a Virtual IP address and achieve this and have the cPanel license active on the VIP.
 

vanilla

Active Member
Dec 20, 2020
32
3
8
Switzerland
cPanel Access Level
Root Administrator
yeah i'm also on azure and got the same problem.

Well, it would be quiet handy, if we could use "Azure Files" which has a lot of nice features with like soft delete. Also creating then froum our site an easy WORM Solution into a blob storage.

I tried so many times HA with cpanel, but can't go well. Would be great if this would be supported.
 

WorkinOnIt

Well-Known Member
Aug 3, 2016
212
30
28
UK
cPanel Access Level
Root Administrator

vanilla

Active Member
Dec 20, 2020
32
3
8
Switzerland
cPanel Access Level
Root Administrator
Yeah it would be really cool, to have WHM Servers in a cluster Setup. So that we can do updates and stuff without any issues for the users.

Sad is, that Azure supports Shared Disks. So that a.e. 2 Servers or more have the same Data Disks + on the server site epherals Disk (low costs). With Workbooks i'm then able to make Backupjobs just on the Disk Layer. That would be such a cost saving feature.

When the Cluster Setup would be supported, then would be a Autoscale Server Setup also be possible based on the load.