[Mediawiki-l] Load Balancing?

Brion Vibber brion at pobox.com
Wed Jan 24 17:32:15 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Starling wrote:
> Russ Lavoie wrote:
>> Is there a way that I can run one wiki site on multiple servers for load
>> balancing?
>>
>> I have searched everywhere I could think of but I am unable to find any
>> documentation on how this would be accomplished.
> 
> Have all of your apache configuration, document root and MediaWiki script
> files in a directory on the local hard drives of the application servers,
> synchronised on demand with a master copy using rsync. Put the image
> directory on a network filesystem such as NFS. You can use any HTTP load
> balancer in front: squid, pound, LVS, etc.

Two additional notes:

1) Be sure to keep the servers' clocks in sync! A standard NTP system
will do.

2) PHP's session storage is used to handle login sessions. Session data
must be stored in a common location unless your load balancing system is
"sticky" (sending a given client always to the same server). A networked
filesystem will usually do fine, or we have the 'sessions in memcached'
sample implementation of storing session data in a shared memcached cloud.

- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFt5gfwRnhpk1wk44RAlS5AJ9yiMXwOHjAMcxW0pS3IVK28QxlRQCeMBsI
jtBTieA8buPGnP17qvuKaoU=
=AEld
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list