#1  
Old 8th January 2007, 16:29
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default Failover Webserver

I have 2 webservers on 2 separate datacentres. On each datacentre, I have a loadbalancer, which redirects any web request to the appropriate webserver.

Basically, Loadbalancer in DC1 (Main datacentre) will redirect all http request to webserver in DC1, while Loadbalancer in DC2 will redirect all http request to webserver in DC2.

The reason is simply should the connections to DC1 be interrupted due to some fault, the roundrobin DNS that is setup will redirect all traffic to the Loadbalancer in DC2. We have managed to get this working fine.

My issue is getting the webserver in DC2 to mirror the content of the webserver files, ie. html, php, etc... from the webserver in DC1. Is there any application/program/daemon that I can use to do this?

Both servers will be running Fedora Core 5, with Apache2, PHP5 and MySQL 5.0, with ISPConfig as the control panel.

Any help/tips/suggestions is greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 8th January 2007, 16:34
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Depends how your sites are created. For flat file sites, rsync might do the trick. Database driven sites a a lot more difficult to replicate.
Reply With Quote
  #3  
Old 8th January 2007, 16:39
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for the reply.

Basically, its just the files for the all sites, eg. html. php, jpg, gif, etc... We have sorted the issues with mySQL as we have 3 separate servers running mySQL cluster, ie. 1 mgmt and 2 storage nodes.

I have heard of rsycn but can it mirror contents from multiple folders on the main server?
Reply With Quote
  #4  
Old 8th January 2007, 17:02
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

You can use this tutorial. Just create multiple entries for every website you want to sync or wrap it in some script to traverse to you "home" directory.
Reply With Quote
  #5  
Old 8th January 2007, 17:25
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Quote:
Originally Posted by martinfst
You can use this tutorial. Just create multiple entries for every website you want to sync or wrap it in some script to traverse to you "home" directory.
Thanks. Its exactly what I needed.
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
howto setup a 2nd webserver for static content Ovidiu Suggest HOWTO 2 22nd December 2006 07:44
webserver not started?? guidovanh Installation/Configuration 1 11th March 2006 07:54
webserver offline need help! eg0y Installation/Configuration 3 19th February 2006 19:12
Redirecting to another webserver derilium HOWTO-Related Questions 5 15th September 2005 15:00
my default webserver failed Venkatesh.S General 1 25th July 2005 10:11


All times are GMT +2. The time now is 04:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.