Hi,
with regard to bug #24607, I wanted to enable external Stor- age on my local PostgreSQL-backed wiki. The documentation at URI:http://www.mediawiki.org/wiki/Manual:$wgExternalServers reads:
| An array of external MySQL servers.
| e.g.
| $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
but executing maintenance/storage/compressOld.php with that configuration yields:
| [...] | PHP Warning: Invalid argument supplied for foreach() in /var/www/html/w/includes/db/LoadBalancer.php on line 68 | PHP Warning: Invalid argument supplied for foreach() in /var/www/html/w/includes/db/LoadBalancer.php on line 68 | You must update your load-balancing configuration. See DefaultSettings.php entry for $wgDBservers. | Backtrace: | #0 /var/www/html/w/includes/db/LoadBalancer.php(571): LoadBalancer->reallyOpenConnection('0rv28', false) ^ | #1 /var/www/html/w/includes/db/LoadBalancer.php(492): LoadBalancer->openConnection(0, false) | #2 /var/www/html/w/includes/ExternalStoreDB.php(56): LoadBalancer->getConnection(-2, Array, false) | #3 /var/www/html/w/includes/ExternalStoreDB.php(150): ExternalStoreDB->getMaster('cluster1') | #4 /var/www/html/w/maintenance/storage/compressOld.php(347): ExternalStoreDB->store('cluster1', 'O:27:"Concatena...') | #5 /var/www/html/w/maintenance/storage/compressOld.php(94): CompressOld->compressWithConcat(0, 20, '', '', 'cluster1', false) | #6 /var/www/html/w/maintenance/doMaintenance.php(105): CompressOld->execute() | #7 /var/www/html/w/maintenance/storage/compressOld.php(408): require_once('/var/www/html/w...') | #8 {main}
and a look at the code and wmf-deployment's addwiki.php and renamewiki.php seems to indicate that the structure is a bit more complex. Could someone update the documentation, please?
TIA, Tim