Page MenuHomePhabricator

Move the dumps_v1 DAGs from the Airflow test_k8s instance to a dedicated instance
Closed, ResolvedPublic

Description

Whilst carrying out the work on T352650, we developed the DAGs on the kest-k8s Airflow instance.

The reason for this initial configuration is that, at that time, we were using novel features such as the KubernetesPodOperator that was not available on all instances.

Now that the Dumps_v1 processes are in production, we should migrate the DAGs from the test-k8s instance to another instance.
The purpose of the test-k8s instance is for running integration test DAGs and for testing new features, so it should not really be running production pipelines.

There will be certain required changes:

Event Timeline

Gehel triaged this task as Medium priority.Sep 23 2025, 1:20 PM
Gehel subscribed.

Do we want to have a dedicated Airflow instance for Dumps?

@Gehel as discussed in previous team meetings, yes, we do. I think airlfow-main is already pretty crowded, especially so at the start of the month, which lines up with when the dumps v1 DAGs start.

brouberol renamed this task from Move the dumps_v1 DAGs from the Airflow test_k8s instance to the main instance to Move the dumps_v1 DAGs from the Airflow test_k8s instance to a dedicated instance.Tue, Jul 21, 7:33 AM

Change #1312978 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/dns@master] Define the airflow-dumps public and internal domains

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

Change #1312981 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] deployment_server: define the airflow-dumps kubeconfigs in dse-k8s-eqiad

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

Change #1312982 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] idp: define the airflow-dumps service

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

Change #1312983 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] trafficserver: define the airflow-dumps public->internal mapping

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

Change #1312984 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] cache/text: enable caching for airflow-dumps.w.o

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

Change #1312989 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] dse-k8s-eqiad: define the airflow-dumps namespace

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

Change #1312990 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] dse-k8s-eqiad: add airflow-dumps to the required operator tenant namespaces

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

Change #1312991 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] dse-k8s-eqiad/mediawiki-dumps-legacy: enable pod creation RBAC from airflow-dumps

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

Change #1312992 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] dse-k8s-eqiad: define the airflow-test-k8s helmfile and values

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

Change #1312993 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] dse-k8s-eqiad/airflow-test-k8s: remove any configuration override related to dumps

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

Change #1313051 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] dse-k8s-eqiad: define the postgreql-airflow-dumps helmfile

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

Change #1312978 merged by Brouberol:

[operations/dns@master] Define the airflow-dumps public and internal domains

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

Change #1312981 merged by Brouberol:

[operations/puppet@production] deployment_server: define the airflow-dumps kubeconfigs in dse-k8s-eqiad

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

Change #1312989 merged by jenkins-bot:

[operations/deployment-charts@master] dse-k8s-eqiad: define the airflow-dumps namespace

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

Change #1312990 merged by jenkins-bot:

[operations/deployment-charts@master] dse-k8s-eqiad: add airflow-dumps to the required operator tenant namespaces

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

Change #1312991 merged by jenkins-bot:

[operations/deployment-charts@master] dse-k8s-eqiad/mediawiki-dumps-legacy: enable pod creation RBAC from airflow-dumps

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

Change #1313051 merged by jenkins-bot:

[operations/deployment-charts@master] dse-k8s-eqiad: define the postgreql-airflow-dumps helmfile

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

Change #1312992 merged by jenkins-bot:

[operations/deployment-charts@master] dse-k8s-eqiad: define the airflow-test-k8s helmfile and values

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

Screenshot 2026-07-21 at 16.25.05.png (2,820×592 px, 166 KB)
We see that both namespaces have the same quotas for now. The airflow-test-k8s quotas will be reduced after the migration.

image.png (2,350×628 px, 119 KB)

As part of the migration of the dump DAGs to their own instance, I'm freezing the git ref airflow-test-k8s uses to https://gitlab.wikimedia.org/repos/data-engineering/airflow-dags/-/tree/1e2fcc4e5740b9c3480b6cd07d9046613ea7aae2, aka right before we removed the dump DAGs from the test_k8s folder.

I'm doing this because we still have running DAGs at the moment, and I'd like for them to finish before we can unpause DAGs over in airflow-dumps.

Reminder to leave mediawiki_cirrussearch_dump paused over in airflow-dumps.

I'm leaving our wiki monitoring DAG, the running ones, as well as the DAGs triggered when in need of syncing the ongoing wikibase dumps.

Screenshot 2026-07-21 at 16.42.55.png (2,942×1,808 px, 644 KB)
All the other dump DAGs are paused in test-k8s.

Change #1312982 merged by Brouberol:

[operations/puppet@production] idp: define the airflow-dumps service

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

NAME                                                 READY   STATUS    RESTARTS   AGE
airflow-envoy-797cd57b94-pjcm4                       1/1     Running   0          35s
airflow-gitsync-7f6987fd5f-tc95d                     1/1     Running   0          35s
airflow-hadoop-shell-86988fc89f-g5c8g                1/1     Running   0          35s
airflow-kerberos-7b97bb9745-8fb9n                    1/1     Running   0          35s
airflow-scheduler-58df9ffc65-hnpk6                   1/1     Running   0          36s
airflow-statsd-568fcc976c-pp62w                      1/1     Running   0          8m40s
airflow-task-shell-65fd6cd9dd-rj7f9                  1/1     Running   0          35s
airflow-webserver-8565466ff-sxdsk                    2/2     Running   0          36s
postgresql-airflow-dumps-1                           1/1     Running   0          77m
postgresql-airflow-dumps-2                           1/1     Running   0          77m
postgresql-airflow-dumps-pooler-rw-d747c5fcd-6qxmb   1/1     Running   0          78m
postgresql-airflow-dumps-pooler-rw-d747c5fcd-rdg84   1/1     Running   0          78m
postgresql-airflow-dumps-pooler-rw-d747c5fcd-ttq92   1/1     Running   0          78m

Change #1312983 merged by Brouberol:

[operations/puppet@production] trafficserver: define the airflow-dumps public->internal mapping

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

Change #1312984 merged by Brouberol:

[operations/puppet@production] cache/text: enable caching for airflow-dumps.w.o

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

https://airflow-dumps.wikimedia.org is now live! I will unpause mediawiki_commons_mediainfo_rdf_dump, mediawiki_wikidata_all_json_dump and mediawiki_wikidata_all_rdf_dump once they complete in test-k8s, so probably tomorrow. After which, I'll remove all dump-related DAGs from test-k8s altogether.

Change #1312993 merged by Brouberol:

[operations/deployment-charts@master] dse-k8s-eqiad/airflow-test-k8s: remove any configuration override related to dumps

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