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)