Summary
The File Exports use HDFS only as a staging area before hdfs_rsync_job copies them to the distribution hosts, but T437463 increases their HDFS retention to 170 days while HDFS storage is short (T437605). We should find out whether the Ceph cluster with the S3 gateway is a better place for them.
Technical notes
- The exports are in /wmf/data/exports/mediawiki_content_history and /wmf/data/exports/mediawiki_content_current. The DAGs in main/dags/mediawiki/content/export/mw_content_xml_export_dags.py write them with MediawikiDumper, HdfsFileFingerprintWriter (SHA256SUMS) and MediawikiDumperSevenZipRecompressor (7z).
- With 170 days, HDFS keeps 6 runs. One run is 9.1 to 9.3 TB logical. This is 81.5 to 83.4 TB on-disk with replication 3, or 1.6% of the cluster.
- In airflow-dags, only the export DAGs use these paths. hdfs_rsync_job copies them to clouddumps1001 and clouddumps1002 (dumps::web::fetches::stats), and the distribution hosts, not HDFS, serve the files to users and mirrors. We must confirm that no other job reads them.
- The three jobs use the Hadoop FileSystem API, so an s3a:// output path can be enough for the write side. We must check the wmf-binary output format and the 7z job with s3a.
- hdfs-rsync reads only HDFS. The distribution hosts need another tool to copy from S3 (for example rclone or s5cmd), with the same --delete behavior.
- The HDFS purge (refinery-drop-older-than in data_purge.pp) must change to an S3 lifecycle rule or a similar cleanup.
Acceptance criteria
- Compare the storage cost and the work for HDFS and Ceph, and decide where to store the File Exports.
- If the decision is Ceph, make a plan for the write path, the copy to the distribution hosts, and the retention.