Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th July 2007, 21:19
itwillcome itwillcome is offline
Junior Member
 
Join Date: Feb 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Question How to host a forum with multiple web servers?

Hi all,

I notice that some forums are run by multiple web servers.
They offer choices for visitors from different regions so that they can enjoy a better speed when browsing.
e.g. Visitors from USA use www1 , visitors from Europe use www2

My question is: how to synchronize the contents and files between different web servers?

For the dynamic content, one database server can be setup. So that all php scripts on different web servers can retrieve from the same database source.

But then, in a real-time forum, how to synchronize the files between the web servers? For example, one user from www1 uploads a file. This file will go to www1's filesystem. How to make this file appears in www2's filesytem?

I can think of 'rsync' every minute between servers. But still it's not real-time, and there may be problems if sychronication can't be finished within the minute.

Any other implementations or hints on this issue? Many thanks.
Reply With Quote
Sponsored Links
  #2  
Old 11th July 2007, 17:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

One solution would be to use NFS, maybe together with DRBD: http://www.howtoforge.com/high_avail...drbd_heartbeat
But I'd only do it if both servers are in the same data center.
You can also try Unison, although it's not really real-time:
http://www.howtoforge.com/linux_unison
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th July 2007, 17:49
itwillcome itwillcome is offline
Junior Member
 
Join Date: Feb 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi falko, thanks for the hint!!!
Reply With Quote
  #4  
Old 11th February 2011, 01:26
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
Default

like what was said , but i would use an single NFS and share / mount the forum folder on the other server,

but if one servers goes down , both go down,
and you need to update the config file for it , to make it not use localhost but the ipaddress of the SQL server( if its run localy)
__________________
Shane Ebert :: Facebok
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
SMTP relay trouble DVS General 3 11th June 2007 09:56
This is %#@*&^$# embarrassing! domino Smalltalk 34 5th February 2007 21:57
Multiple Physical Hosting Servers Sharing IP wyzzkid HOWTO-Related Questions 1 28th October 2006 04:10
Routing to multiple web servers on separate computers serutan Server Operation 1 16th April 2006 14:35
Multiple Servers Running Together (web, db, email) gjcomputer Installation/Configuration 6 4th January 2006 10:46


All times are GMT +2. The time now is 06:23.


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