iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2009, 08:11 AM
fulleffect's Avatar
WebProWorld Pro
 
Join Date: Jun 2008
Location: Northeast UK
Posts: 107
fulleffect RepRank 1
Default 2 Servers - 1 cPanel - Load Balancing

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!
__________________

Reply With Quote
  #2 (permalink)  
Old 01-31-2009, 10:20 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: 2 Servers - 1 cPanel - Load Balancing

Quote:
Originally Posted by fulleffect View Post
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
Look at the failover system at DNS Made Easy when it detects the main server down it updates DNS to point visitors to the 2nd server.
Quote:
3. Can i use 1 cpanel to do this, or do i need 2?
No, cPanel is installed per server, having said that I guess you could write custom scripts to copy setup from the cPanel server to the backup server and have them update Apache etc.
Quote:
4. What software would you use to make the switch?
DNS made easy should take care of switching to the back up server and back to the main one once it's running again.

However you are going to need something to keep the 2 copies of the site in sync, assuming you store order information on the server then you're going to need to keep the databases in sync and then catch the failed one up, possibly merging data from the 2 back into one. Think this sounds easier than it is.

You're going to need the sync to happen without having to take the service offline, you'll probably end up having to have your e-commerce software modified to support this.

Note: The above is failover rather than load balancing that is only one server is live at a time. If you want to load balance then normally you do it within the same data center using special hardware.

For load balancing both servers would be serving data and if one fails the other takes over all the work, however if the network fails you're down again, although if the host has many providers this shouldn't be that frequent.
Reply With Quote
  #3 (permalink)  
Old 02-02-2009, 07:17 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: 2 Servers - 1 cPanel - Load Balancing

For merging Databases, there are a few solutions.

It really depends on your budget, preference and ecommerce application abilities.

In theory, the "easiest" and least expensive way to accomplish this is a basic 3rd server, which doesn't have to be dedicated.

The 3rd server could be the online order center. Where all of the order details are store and accessed. So both ecommerce servers would store the orders on the third server.

This way, no matter what ecommerce server goes down and when, there will be a central storage area.

**
Of course NO solution is the perfect solution, so there will be flaws or "what ifs" in ALL solutions.
Reply With Quote
  #4 (permalink)  
Old 02-02-2009, 08:36 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: 2 Servers - 1 cPanel - Load Balancing

Quote:
Originally Posted by imvain2 View Post
In theory, the "easiest" and least expensive way to accomplish this is a basic 3rd server, which doesn't have to be dedicated.
Then this is a single point failure and therefore the other 2 servers are pointless therefore may as well stick with a single server.
Reply With Quote
  #5 (permalink)  
Old 02-03-2009, 12:08 AM
WebProWorld Member
 
Join Date: Aug 2007
Location: Mumbai, India
Posts: 55
sanver RepRank 1
Default Re: 2 Servers - 1 cPanel - Load Balancing

Managing downtime for an enterprise application or an e-commerce sie is certainly a mater of priority today for Webmasters. Of-course choosing the right data center or the web hosting company can take care of lot of risk associated with downtimes.

Having alternate DNS is certainly a good step provided the otherDNS points to a live replicate sever. Replicating coding part of the application maynot be a very difficult task. For Databases, nearly al databases provide for a way to replicate it. For MySQL, you may like to go through MySQL :: MySQL 5.0 Reference Manual :: 16 Replication and for MS-SQL, you may like to go through Microsoft SQL Server - Wikipedia, the free encyclopedia so on....

You need to calculate the cost of your downtime is decidicng how much time and money you are going to spend on setting up fail safe alternative server.

All the best!
__________________
Sanjay Verma, M/s. Sanver E-Solutions Private Limited, Mumbai, India
Linux Hosting | Windows Hosting | SugarCRM Hosting
Reply With Quote
  #6 (permalink)  
Old 02-03-2009, 04:09 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 702
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default Re: 2 Servers - 1 cPanel - Load Balancing

the DNS route is a great, simple easy way to go.. simply use name servers to point to main and sub server however if the site is dynamic and you need to track everything it will not be sync'd nor balanced...... for that you need a proxy system in between (effectively a 3rd server) dns points to the proxy in the middle which then routes traffic based on load parametres you've previously determined. This system can also be set up to sync the data / orders etc. between the two servers .. it is fairly expensive way to go, but definitely is the best, it's what most enterprise level sites do.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Effective use of the cPanel or other panels. kgun Webmaster Resources Discussion Forum 6 01-10-2006 02:57 PM
Balancing Search Privacy & Data Storage WPW_Feedbot Search Engine Optimization Forum 0 06-06-2005 06:30 PM
Does cPanel really have a lot of bugs? MktgPro Web Programming Discussion Forum 4 05-25-2005 09:02 PM
Load-Balancing Solution WPW_Feedbot IT Discussion Forum 0 12-14-2004 11:53 AM


All times are GMT -4. The time now is 03:03 AM.



Search Engine Optimization by vBSEO 3.3.0