Manual:$wgExternalServers

Details
An array of external MySQL servers.

e.g.

$wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );