Hi,
We currently have the "MySQLPageGenerator" to do database queries. It
uses site.dbName() to figure out the name of the site, but we don't seem
to have any system to figure out what database server to connect to. For
example:
* Dutch Wikipedia on Toolserver: connect nlwiki_p nlwiki-p.db
* English Wikipedia on Toolserver: connect enwiki_p enwiki-p.db
* Dutch Wikipedia on Toollabs: connect nlwiki_p nlwiki.labsdb
* English Wikipedia on Toollabs: connect nlwiki_p nlwiki.labsdb
How to solve this? Possible solution is to make a function to detect
what cluster we're on or a user variable to set it (config.cluster?) and
than add a function site.dbServer() to return the right server?
Maarten
[1]
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/d2ea22661b967774048bc7c…