Page MenuHomePhabricator

WDQS backend init image which prepares the triple-store index
Closed, ResolvedPublic3 Estimated Story Points

Description

The indexing pipeline (T422179) will prepare the necessary triple-store index files for a WDQS pod (T425007) to be initiated.

The idea is to have an init container which performs the following steps:

  1. Check if the index as prepared by the pipeline is newer than the one in the pods node storage (or none exists on the node)
  2. If so, update the index:
    1. Move the current index files to a backup location
    2. Copy the new index files from the pipeline result to the pod node
    3. Update the Kafka offset for the node based on the index dump date
    4. (!) Write the Kafka group for the node into a file to be read by the consumer (It is still unclear how we solve the issue of the Kafka group per node)

AC:

  • A new docker image for the init container is available in the docker registry
  • The init container has been integrated into the helm chart (T425007) (draft enough)

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
wdqs-backend-init: Docker image which prime the Qlever index for the WDQS deployment.repos/releng/gitlab-trusted-runner!169truegwikidata-platform/wdqs-backend-initmain
An init container image for WDQSrepos/wikidata-platform/wdqs/wdqs-backend-init!1trueginit-container-proposalmain
Customize query in GitLab

Event Timeline

trueg changed the task status from Open to In Progress.May 8 2026, 12:32 PM
trueg claimed this task.
trueg triaged this task as High priority.
trueg set the point value for this task to 3.
trueg moved this task from Incoming to Sprint 05 (2026/05/05) on the Wikidata Platform Team board.

trueg opened https://gitlab.wikimedia.org/repos/releng/gitlab-trusted-runner/-/merge_requests/169

wdqs-backend-init: Docker image which prime the Qlever index for the WDQS deployment.

dancy merged https://gitlab.wikimedia.org/repos/releng/gitlab-trusted-runner/-/merge_requests/169

wdqs-backend-init: Docker image which prime the Qlever index for the WDQS deployment.

A new docker image is now being built in wdqs-backend-init.

The init script performs the following steps:

  • The timestamps of the current and the new index (support for S3 bucket and local path) files are compared
  • If the new index files are newer than the current one:
    • The old index is optionally backed up to a separate folder (using symlinking)
    • The new index files are copied to the current index location
    • The Kafka consumer offset is set to the new index's timestamp
  • If the new index files are not newer, the Kafka consumer offset can optionally be set to the current index's timestamp.