Page MenuHomePhabricator

Increase entityAccessLimit for WikibaseClient wikis
Closed, ResolvedPublic

Description

Increase entityAccessLimit for WikibaseClient wikis

The current default is 400. (The reason for this number is because back then in 2015, the highest number of entity access for all wikis is just a little below 400). However, as of now, there are more pages that requires a higher entityAccessLimit to generate the page that they wanted. Maybe we could increase it in incremental phase and check for it's performance issue after every increment. According to the long tail graph on how the number of entities of the pages in Wikipedia is accessed, even a small amount of increased in the entityAccessLimit (e.g. from 400 to 500) can have a huge impact.

Story

We need to increase the entityAccessLimit from RestrictedEntityLookup in order for WikibaseClient users to access more different entities.

Acceptance Criteria

Increase the entityAccessLimit so that at least some pages can be able to access more entities from WD and the amount of "Too many Wikidata entities accessed" error can be reduced.

Resources

2015 patch for the current 400 entityAccessLimit
2015 usage tracking

Event Timeline

Marostegui subscribed.

I am tagging serviceops here to see if this is something they can help with.

The Wikidata Integration in Wikimedia projects team essentially does have two questions here:

  • We plan to increase the limit from 400 to 500 entities per page. We assume this will gradually increase the load on the primary entity store on the wikidata.org server and possibly the load on secondary stores like the terms tables. While we don't expect any new problems to arrise we are interested if anyone from the SRE teams does have concerns?
  • We want to let the responsible SRE team(s) know in advance that and when this change will happen so we can quickly react in case it is necessary. Undoing the config change will be no problem, when needed.

Hii, from DBA point of view, I ask that please hold off bumping the number in commons (if anything, reduce it even, it's quite big there). In most other wikis, it should be fine. In the long-term we should move wbc_ table to x1 but that doesn't block this task

Hii, got it! We will create a patch to bump the limit for other wikis to 500 and only exclude the commons for now. Thanks, @Ladsgroup!

Change #1130346 had a related patch set uploaded (by Seanleong-wmde; author: Seanleong-wmde):

[operations/mediawiki-config@master] Increase entityAccessLimit from 400 to 500 for all wikis except commons.

https://gerrit.wikimedia.org/r/1130346

jijiki subscribed.

removing serviceops, please re-add is there is something we can help with

Change #1133317 had a related patch set uploaded (by Seanleong-wmde; author: Seanleong-wmde):

[operations/mediawiki-config@master] Increase entityAccessLimit from 400 to 500 for all wikis except commons.

https://gerrit.wikimedia.org/r/1133317

Change #1133317 had a related patch set uploaded (by Seanleong-wmde; author: Seanleong-wmde):

[operations/mediawiki-config@master] Increase entityAccessLimit from 400 to 500 for all wikis except commons.

https://gerrit.wikimedia.org/r/1133317

Change #1133317 merged by jenkins-bot:

[operations/mediawiki-config@master] Increase entityAccessLimit from 400 to 500 for all wikis except commons.

https://gerrit.wikimedia.org/r/1133317

Mentioned in SAL (#wikimedia-operations) [2025-04-08T13:22:49Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1133317|Increase entityAccessLimit from 400 to 500 for all wikis except commons. (T384455)]], [[gerrit:1134064|Remove unused config vars (T389429)]], [[gerrit:1134691|Fix EntitySchema propertyType on Test Wikidata (T371196)]]

Mentioned in SAL (#wikimedia-operations) [2025-04-08T13:30:20Z] <lucaswerkmeister-wmde@deploy1003> lucaswerkmeister-wmde, ebernhardson, seanleong-wmde: Backport for [[gerrit:1133317|Increase entityAccessLimit from 400 to 500 for all wikis except commons. (T384455)]], [[gerrit:1134064|Remove unused config vars (T389429)]], [[gerrit:1134691|Fix EntitySchema propertyType on Test Wikidata (T371196)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-08T13:38:19Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1133317|Increase entityAccessLimit from 400 to 500 for all wikis except commons. (T384455)]], [[gerrit:1134064|Remove unused config vars (T389429)]], [[gerrit:1134691|Fix EntitySchema propertyType on Test Wikidata (T371196)]] (duration: 15m 30s)