[Mediawiki-l] Mediawiki clusters

Brion Vibber brion at pobox.com
Tue Jun 20 17:02:31 UTC 2006


Daniel J McDonald wrote:
> With replication, there is only one writeable node.  How do you force
> mediawiki to do reads from replica #n and writes to the master?

Code that works with the database asks the load balancer for a database
connection object that's either the master (for write or time-sensitive read
work) or a randomly selected not-too-lagged slave (for non-sensitive read work).

See LoadBalancer.php.

-- brion vibber (brion @ pobox.com)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20060620/fe75ab65/attachment.pgp 


More information about the MediaWiki-l mailing list