HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Technical (
-   -   How to host a forum with multiple web servers? (

itwillcome 10th July 2007 22:19

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.

falko 11th July 2007 18:28

One solution would be to use NFS, maybe together with DRBD:
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:

itwillcome 11th July 2007 18:49

Hi falko, thanks for the hint!!! :)

zcworld 11th February 2011 02:26

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)

All times are GMT +2. The time now is 11:13.

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