https://bugzilla.wikimedia.org/show_bug.cgi?id=30571

Bawolff <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|High                        |Low
                 CC|                            |[email protected]

--- Comment #8 from Bawolff <[email protected]> 2012-11-30 20:46:33 UTC ---
(In reply to comment #7)
> Gregor: Do you still face this problem?

Well global usage hasn't changed, so this still exists as an issue.

Arguably though it wouldn't be totally unreasonable to wontfix this and tell
people to just set up $wgLBConfFactory. But it is also not unreasonable to make
this work without extra effort. Hence lowering priority to low (perhaps should
be lowest?)

-----

For reference this is the config you would need if you had 3 wikis, with
database names wikidb1, wikidb2, and wikidb3, each with a single master and no
slaves. Below is what you would put in LocalSettings.php for wikidb1 (only
thing that would change is $wgDBname parameter). If you use prefixes some of
the varibles for db names take the form "dbname-prefix", but i can't remember
which ones do that and which have separate variables off the top of my head.


$wgGlobalUsageDatabase = 'db name where the global usage db is';
$wgDBname = 'wikidb1';
$wgDBuser = 'your db username'; //must be same for all 3 wikis in this
simplified setup
$wgDBpassword = 'pass'; // Same pass must be usable for all 3 wikis
                        // In order to get cross db access to work
$wgLBFactoryConf = array(

'class' => 'LBFactory_Multi',

// This assumes all databses are on the same server
// If the databases were on different servers, you'd
// have each database host be a different s.
'sectionsByDB' => array(
    'wikidb1' => 's1', // Assumes db name for first wiki is wikidb1
    'wikidb2' => 's1', // and so on.
    'wikidb3' => 's1',
),

'sectionLoads' => array(
    's1' => array(
        'localhost'  => 0, // All on section s1, which has single master, at
localhost.
    ),
),


'serverTemplate' => array(
    'dbname'      => $wgDBname,
    'user'          => $wgDBuser,
    'password'      => $wgDBpassword,
    'type'          => 'mysql',
    'flags'          => DBO_DEFAULT,
    'max lag'      => 30,
),
);

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to