Repository navigation
Description
Description
Summary
Currently, the Helm chart processes all DAG bundles in a single DAG Processor deployment. This proposal adds an option to create separate deployments for each DAG bundle defined in dagBundleConfigList, enabling independent resource isolation and scaling per bundle.
Lines 2274 to 2296 in 0cf89fa
| dagBundleConfigList: | |
| - name: dags-folder | |
| classpath: "airflow.dag_processing.bundles.local.LocalDagBundle" | |
| kwargs: {} | |
| # Example: | |
| # dagBundleConfigList: | |
| # - name: bundle1 | |
| # classpath: "airflow.providers.git.bundles.git.GitDagBundle" | |
| # kwargs: | |
| # git_conn_id: "GITHUB__repo1" | |
| # subdir: "dags" | |
| # tracking_ref: "main" | |
| # refresh_interval: 60 | |
| # - name: bundle2 | |
| # classpath: "airflow.providers.git.bundles.git.GitDagBundle" | |
| # kwargs: | |
| # git_conn_id: "GITHUB__repo2" | |
| # subdir: "dags" | |
| # tracking_ref: "develop" | |
| # refresh_interval: 120 | |
| # - name: dags-folder | |
| # classpath: "airflow.dag_processing.bundles.local.LocalDagBundle" | |
| # kwargs: {} |
Motivation
Problems
-
Resource Contention: When multiple DAG bundles run in a single DAG Processor deployment, if one bundle consumes excessive CPU/memory, it impacts the parsing performance of other bundles.
-
Parsing Time Delays: When a specific bundle has many or complex DAG files, parsing that bundle takes longer and can delay parsing of other bundles.
-
Scaling Limitations: Even when bundles have different resource requirements or priorities, all bundles must currently be handled by the same deployment.
-
Lack of Failure Isolation: Issues occurring in one bundle can affect the entire DAG Processor.
Use Cases
- Loading DAGs from multiple Git repositories (different bundle per repository)
- When specific bundles require higher priority or more resources
Proposed Solution
Feature Overview
Add a new deployPerBundle section to the dagProcessor configuration to create separate Kubernetes deployments for each bundle. When deployPerBundle.enabled is set to true, a separate deployment will be created for each bundle in dagBundleConfigList.
The airflow dag-processor --bundle-name (or -B) option is already an existing feature in Airflow core. This proposal only requires implementing the Helm chart configuration to utilize this existing functionality, making it straightforward to deploy per-bundle DAG processors.
values.yaml Changes
dagProcessor:
enabled: ~
dagBundleConfigList:
- name: dags-folder
classpath: "airflow.dag_processing.bundles.local.LocalDagBundle"
kwargs: {}
# ... more bundles
# Per-bundle deployment option
# When enabled, creates a separate deployment for each bundle in dagBundleConfigList
deployPerBundle:
enabled: false
# Command args template for per-bundle deployments
# {{ bundleName }} will be replaced with the actual bundle name
args: ["bash", "-c", "exec airflow dag-processor --bundle-name {{ bundleName }}"]
# Per-bundle specific overrides (optional)
bundleOverrides:
dags-folder:
replicas: 2
resources:
requests:
memory: "2Gi"
cpu: "1000m"Backward Compatibility
- When
deployPerBundle.enabled: false(default), existing behavior is maintained - Per-bundle deployments are only created when
deployPerBundle.enabled: true - Existing
dagProcessorsettings (likereplicas,resources, etc.) are used as defaults for per-bundle deployments - The
deployPerBundle.argsreplaces the defaultargswhendeployPerBundle.enabledistrue - Bundle-specific configuration overrides are possible via
deployPerBundle.bundleOverrides
Benefits
- Resource Isolation: Each bundle runs in independent pods, preventing resource contention
- Independent Scaling: Different replica counts can be set per bundle
- Failure Isolation: Issues in one bundle do not affect others
- Flexible Resource Allocation: Different resource requests/limits can be configured per bundle
- Easier Monitoring: Metrics and logs can be separated and tracked per bundle
Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Activity
abhijeets25012-tech commentedon Jan 25, 2026
i want to contribute in it
shahar1 commentedon Jan 25, 2026
Thanks for proposing @uplsh580 , feel free to raise a PR.
@abhijeets25012-tech As the author expressed his will to open a PR, they will be first given the opportunity.
Feel free to refer to other unassigned issues labeled as
good first issue.potiuk commentedon Mar 2, 2026
@uplsh580 We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Subham-KRLX commentedon Oct 19, 2026
I noticed that #74849 was recently opened requesting the same feature which shows there is continued community interest in this. The core infrastructure is already in place with the bundle-name CLI flag and the bundle_names_to_parse support in DagFileProcessorManager along with the deactivate_missing fix from #69963. The remaining work is purely on the Helm chart side. I would like to pick this up and submit a PR if no one is currently working on it.
Helm: Skip the default Dag processor when Dag processor sets are used