You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

WMDE/Wikidata/Deployment: Difference between revisions

From Wikitech-static
< WMDE‎ | Wikidata
Jump to navigation Jump to search
imported>Ladsgroup
No edit summary
 
imported>Addshore
(→‎Adding a client: add more details about checking dispatching)
Line 8: Line 8:


Then, add name of the wiki to wikidatacleint.dblist and deploy it. For example: https://gerrit.wikimedia.org/r/#/c/472008/
Then, add name of the wiki to wikidatacleint.dblist and deploy it. For example: https://gerrit.wikimedia.org/r/#/c/472008/
You can check arbitrary access with something like the following: <nowiki>{{#property:P31|from=Q4115189}}</nowiki>
In order for dispatching to work the wiki needs to be listed in the wb_changes_dispatch table on wikidatawiki (it might already be there).
You can check the dispatch logs for the wiki by doing something like this:
<pre>addshore@mwmaint1002:/var/log/wikidata$ tail -f dispatchChanges-wikidatawiki.log | grep 'sourceswiki'</pre>
Using the example arbitrary access above making a change to P31 on Q4115189 should result in a log message in the dispatch log for the wiki after a ~30 seconds (depending on the health of the dispatcher)

Revision as of 13:20, 15 November 2018

Adding a client

If a client is being added as part of a new wiki, see Add a wiki#Wikidata.

Otherwise, first create the tables:

ladsgroup@mwmaint1002:/srv/mediawiki/php-1.33.0-wmf.1$ mwscript sql.php --wiki=sourceswiki extensions/Wikibase/client/sql/entity_usage.sql

Then, add name of the wiki to wikidatacleint.dblist and deploy it. For example: https://gerrit.wikimedia.org/r/#/c/472008/

You can check arbitrary access with something like the following: {{#property:P31|from=Q4115189}}

In order for dispatching to work the wiki needs to be listed in the wb_changes_dispatch table on wikidatawiki (it might already be there).

You can check the dispatch logs for the wiki by doing something like this:

addshore@mwmaint1002:/var/log/wikidata$ tail -f dispatchChanges-wikidatawiki.log | grep 'sourceswiki'

Using the example arbitrary access above making a change to P31 on Q4115189 should result in a log message in the dispatch log for the wiki after a ~30 seconds (depending on the health of the dispatcher)