Add monthly Airflow DB cleaner DAG to all instances

Create db_cleaner_dag_factory and add maintenance DAGs that run monthly on day 3:

  • to clean old Airflow DB records (180 day retention).
  • to run vacuum and reindex on PG tables
  • to check global cache hit ratio of PG db

Deploy:

  • we should unpause those dags progressively on each instance.
  • First re-index vacuum operatins may be slow. Watch out.

Bug: T411992

Edited by Aqu

Merge request reports

Loading