2 Servers - 1 cPanel - Load Balancing

davestacey

Member
Nov 10, 2005
13
0
151
Hi,

I currently have a dedicated server, with cpanel, and recently had a network outage, resulting in the ecommerce site being down for several hours.

Not good for business...... So my question is, if i bought a second server with another host, how can i implement a fail safe system, where by

1. The primary server serves the shop 24/7
2. In the event of a server crash or network failure, i can switch to the secondary server
3. Can i use 1 cpanel to do this, or do i need 2?
4. What software would you use to make the switch?
5. Are there any other better ways to do what i need?


Thanks in advance!
 

pirrup

Well-Known Member
Nov 27, 2004
54
0
156
you will need 2 cpanel licenses ,for each server a license.

Then you will need to setup dns failover (DNS made easy) so when server goes down the dns failover will switch to the other server.

Use rsync to sync all data between the servers .

this is an easy failover setup that works
 

Voltar

Well-Known Member
Apr 30, 2007
267
0
168
Bakersfield, California
From what I've read on here (there are a few threads about this), it can be done. I believe the hardest thing would be having the databases in sync and identical, although that can be alleviated with MySQL replication. The other thing is the cPanel configuration files, and keeping them in sync so if you create an account, it gets created on both servers, etc.

Like said above though, you need a cPanel license for all the boxes involved, except DNS Only boxes (that is, if you decide to use DNS Only).
 

sirotex

Well-Known Member
Jul 10, 2008
121
0
66
Why not just move to a better Network? Problem solved. You shouldn't have to pay more just because your Provider are not reliable.
 

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Why not just move to a better Network? Problem solved. You shouldn't have to pay more just because your Provider are not reliable.
sirotex, there's no such thing as a fail safe network, or setup. Even with the most expensive datacentres, you will have downtime. And even if their equipment is all working well, you're single server (with single motherboard, CPU & RAM) can & will fail at some stage. And, networking problems outside the DC (and outside their control) will cause downtime as well.


Has anyone done this kind of setup before? And can you please share your experiences with it? How do you handle the email ID's, and session files?