-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wikibase DB remains empty in Kubernetes #617
Comments
Does Wikibase require some additional configuration parameter? Or maybe does this have something to do with our cache or jobrunner configuration? Any idea what might be going on @physikerwelt ? |
Sorry, I never used $wgDBservers. See https://github.com/MaRDI4NFDI/portal-compose/pull/428/files for the way I think this should be done. In your change there is no indication which server is the main and which one is the replica. Thus, it might be that wikibase writes by chance to the replica. |
As far as I understand, the 'load' parameter indicates what is the main and what is the replica, similarly to what you do in the code you attach with 'sectionLoads'. I will try using $wgLBFactoryConf instead to see if it helps. In any case, the replica is configured itself as read-only, so it is not possible for wikibase to write there. |
I looked at the manual of wgDbServer. The first one is the master. It's hard to believe that one table behaves differently than the other. I would encourage you to double-check if the observation is correct. |
For documentation, it was indeed the case that both tables were behaving differently.
to the main node. |
I have managed to set up the mariaDB in the Kubernetes cluster with write and read replicas.
The only change I have introduced in LocalSettings is this (with the right credentials).
The connection with the database is properly established and whenever I create a wikibase Item I can see it in the
page
table of themy_wiki
database and correctly replicated. For instance:However, all the specific tables from Wikibase remain empty. Such as:
Normally, the wbt_text table should show the labels of the items, in this case for item Q1.
The text was updated successfully, but these errors were encountered: