Last modified: 2013-01-14 15:53:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40972, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38972 - Rethink shared table configuration setup for synching repo and client
Rethink shared table configuration setup for synching repo and client
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
storypoints: 8
: upstream
Depends on:
Blocks: 38975
  Show dependency treegraph
 
Reported: 2012-08-02 12:24 UTC by denny vrandecic
Modified: 2013-01-14 15:53 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description denny vrandecic 2012-08-02 12:24:03 UTC
Rethink the current shared table setup for the WMF cluster.
Comment 1 denny vrandecic 2012-08-09 12:22:18 UTC
wgshareddb setting currently can only point to one database. If you want to share with multiple databases, this wouldn't work. The target db has to be configured per table.
Comment 2 Daniel Kinzler 2012-09-03 10:35:12 UTC
The relevant settings are: $wgSharedTables, $wgSharedDB, and $wgSharedPrefix. Note that $wgSharedTables contains array( 'user', 'user_properties' ), but it's not used unless $wgSharedDB is not empty. 

To make this more flexible, all access to these veriables should be replaced by access to static functions that can then be changed to work based on different configuration variables (though the old style config should still be supported). This seems feasible, the hardest decision being how to best structure the new setup. An array with table names as keys and records contiaining database name and prefix would be one way:

  $wgSharedTables = array(
    'user' => array( 'dbname' => 'foo', 'prefix' => 'bla_' )
  )
Comment 3 Daniel Kinzler 2012-09-03 11:15:22 UTC
After some consideration, solving this is not required for Wikidata deployment: I could not find any reference to $wgSharedDB on http://noc.wikimedia.org/conf/. Apparently, GlobalUsage uses it's own "shared" table config, $wgGlobalUsageTable, not $wgSharedTables, so it doesn't conflict with Wikibase using $wgSharedTables. 

However:

a) We should still consider using our own config for sharing tables

b) it would still be nice if $wgSharedTables became more flexible and powerful

I suggest we re-categorize this as a core feature request and remove it from the Wikidata backlog.
Comment 4 denny vrandecic 2012-09-06 10:44:37 UTC
This needs to be done in core.
Comment 5 Daniel Kinzler 2012-09-24 08:59:05 UTC
lowering prio and unassignig. this is not critical and should be discussed again before being picked up again.
Comment 6 Daniel Kinzler 2012-09-27 08:58:33 UTC
Proposed solution: bug 40543

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links