Auto Scaling and Load Balancing with Google Compute Engine?

unity200

Active Member
Nov 16, 2006
33
4
158
Hello,

A bit clear already from the topic title, but here goes:

Lets say that we have created a VM in Google Compute Engine and installed cPanel per the tutorial at cPanel docs. And it works.

If we spin up the copies of that VM in GCE using autoscaling features and distribute the load through those VMs through Google's load balancer, will cPanel function normally? With the load being distributed among different instances of the copies of VM?

Thanks.

 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,785
335
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Not without heavy modification and coordination. Biggest issue that would need to be dealt with is database connections. If you simply copy an instance, each instance is going to have its own database for each site and writes will not all be consolidated into one database. So that needs to be addressed. Also you cannot host email in this manner. There are other challenges as well, but these are the biggest.
 

unity200

Active Member
Nov 16, 2006
33
4
158
However running multiple instances of databases while using a single mysql database file on persistent disks is possible using Kubernetes engine? Surely, since there is one persistent disk which is actually a network drive, all the instances of mysql is going to write to that one single mysql record on the single same disk?
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,785
335
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Yes that is one possible way to overcome that challenge if done correctly. But this is not possible using just cPanel's built in systems, it would require manually configured systems to use properly, and I will note that cPanel says it does not support the use of network drives.
 

unity200

Active Member
Nov 16, 2006
33
4
158
Woah that's very bad. As internet moves to cloud, cpanel falls behind...

Anyway thanks...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello @unity200,

There's currently no support for automatic scaling and/or load balancing with cPanel & WHM in the manner in which you described, however the information on our Server Profiles Roadmap document offers a glimpse into future plans and existing options :

Server Profiles Roadmap - cPanel Knowledge Base - cPanel Documentation

Additionally, I encourage you to vote and add feedback to the following feature requests to express your support for this functionality:

Built-in load balancing, replication, high availability
Active-Active Redundancy or High-availability

Thank you.