Skip to content

Proposal: Per-Bundle DAG Processor Deployments in Helm Chart #61037

Open

Description

@uplsh580

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.

airflow/chart/values.yaml

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

  1. 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.

  2. 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.

  3. Scaling Limitations: Even when bundles have different resource requirements or priorities, all bundles must currently be handled by the same deployment.

  4. 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 dagProcessor settings (like replicas, resources, etc.) are used as defaults for per-bundle deployments
  • The deployPerBundle.args replaces the default args when deployPerBundle.enabled is true
  • Bundle-specific configuration overrides are possible via deployPerBundle.bundleOverrides

Benefits

  1. Resource Isolation: Each bundle runs in independent pods, preventing resource contention
  2. Independent Scaling: Different replica counts can be set per bundle
  3. Failure Isolation: Issues in one bundle do not affect others
  4. Flexible Resource Allocation: Different resource requests/limits can be configured per bundle
  5. 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

Activity

  1. added
    kind:feature
    needs-triage
    on Jan 25, 2026
  2. added
    area:helm-chart
    on Jan 25, 2026
  3. abhijeets25012-tech commented on Jan 25, 2026

    @abhijeets25012-tech
    Contributor

    i want to contribute in it

  4. removed
    needs-triage
    on Jan 25, 2026
  5. shahar1 commented on Jan 25, 2026

    @shahar1
    Contributor

    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.

  6. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @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.

  7. Subham-KRLX commented on Oct 19, 2026

    @Subham-KRLX
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dag-bundlesarea:helm-chartkind:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions