Draft: wikidata: index RDF graph with qlever

Depends on: !2319 (merged) 1305854

WIP: this MR has not been tested yet, and depends on not yet merged deployment-charts changes.

Add three new tasks to hydrate a local mounted volumed on dse-k8s, run qlever-index in an ephemeral pod, and copy the index binary files into the data pipeline s3 bucket for distribution to the wdqs backend service.

A medata index file is generated that includes a timestamp indicating the cut-off time for the data contained in the dumps/index.

Since we control when the dump process starts, we use the DAG start timestamp instead of the dateModified value in the metadata file.

A latest.json manifest needs to be generated in the index S3 bucket, with a pointer (prefix) the wikidata snapshot (datestamp) of the dag run.

Kubernetes infrastructure

Under the hood we use a PV with node affinity to two high mem/storage hosts in the k8s cluster.

Related infra changes are implemented in

1305854

cc / @lerickson @trueg @btullis

Bug: T428235

Signed-off-by: Gabriele Modena gmodena@wikimedia.org

Edited by Gmodena

Merge request reports

Loading