This feature is only available for Airflow 3.x Deployments.
Remote Execution is an execution mode on Astro that separates task execution from orchestration. With Remote Execution, you run Airflow tasks in your own Kubernetes infrastructure while Astro manages the orchestration components in the cloud. Use Remote Execution to keep your data and code within your own infrastructure for security or compliance requirements.
Remote Execution uses a decoupled architecture with two planes:
Orchestration plane (Astro-managed)
The orchestration plane runs in Astro’s cloud infrastructure and includes:
The orchestration plane assigns tasks to agents, monitors their health via heartbeats, and provides visibility through logging and observability features.
Execution plane (Customer-managed)
The execution plane runs in your Kubernetes cluster and includes:
Agents pull tasks from the orchestration plane via secure HTTPS connections, execute them locally, and report status back. Agents maintain frequent heartbeats with the API Server. If an agent loses its heartbeat, the orchestration plane automatically reroutes tasks to healthy agents. See Remote Execution Agent failure scenarios for more information.
Agents are the core component of Remote Execution. Each agent is a collection of Airflow components (Worker, Dag Processor, Triggerer) deployed as a single unit in your Kubernetes cluster. You can deploy multiple agents with unique configurations across different clusters, regions, or node types to meet your workload requirements.
Agents communicate with Astro using:
Dag bundles are collections of Dag files and supporting code. Remote Execution supports two types:
GitDagBundle provides automatic Dag versioning, allowing you to track changes and view different versions in the Airflow UI.
XCom (cross-communication) allows Airflow tasks to share data. With Remote Execution, you must configure an object storage backend (AWS S3, Azure Blob Storage, or GCP Cloud Storage) to pass XCom data between tasks running on different agents.
Remote Execution Agents must be configured with a secrets backend to securely access Airflow connections and variables. This can be AWS Secrets Manager, Azure Key Vault, Google Cloud Secret Manager, or HashiCorp Vault.
Configure the following required and optional components for Remote Execution.