This guide provides everything you need to set up Remote Execution on Astro, including prerequisites, configuration requirements, and a step-by-step checklist.Documentation Index
Fetch the complete documentation index at: https://astronomer-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
What you’ll configure
Remote Execution requires both required and optional components. Understand what you need before starting setup.Required components
You must configure these components for Remote Execution to function:| Component | Purpose | When configured |
|---|---|---|
| Remote Execution Agents | Execute Airflow tasks in your infrastructure | Register and configure agents |
| Secrets Backend | Securely store and access Airflow connections and variables | Configure secrets backend |
| XCom Backend | Pass data between tasks using object storage | Configure XCom backend |
| Dag sources | Define how agents access Dag code (Git or local) | Configure Dag sources |
All required components must be configured before agents can successfully execute tasks. The setup checklist below provides the recommended order.
Recommended components
| Component | Purpose | Documentation |
|---|---|---|
| Sentinel | Monitor agent health and report status to the orchestration plane | Enable Sentinel |
Optional components
These components enhance functionality but aren’t required for basic operation:| Component | Purpose | Documentation |
|---|---|---|
| Logging | Export task logs to external platforms or object storage | Configure logging |
| OpenLineage | Enable data lineage and observability in Astro Observe | Configure OpenLineage |
| AWS PrivateLink | Enable private connectivity between agents and Astro | Configure AWS PrivateLink |
| Azure Private Link | Enable private connectivity between agents and Astro | Configure Azure Private Link |
Setup
Follow these steps in order to set up Remote Execution:1. Meet prerequisites
Before you begin, ensure you have:- An Astro Deployment configured for Remote Execution mode. See Create a deployment.
- Kubernetes 1.30 or later
- Helm 3 or later
- Permissions to create Astro agents
- A Deployment API token with Deployment Admin permissions
- Network access from your Kubernetes cluster to Astro. Add
https://<your-cluster-id>.external.astronomer.run/to your organization’s allowlist. To find your cluster ID, go to Settings > Clusters in the Astro UI.
2. Register and configure agents
Install the Remote Execution Agent Helm chart in your Kubernetes cluster:- Create an Agent Token in the Astro UI
- Download and configure the
values.yamlfile - Install the Helm chart with your configuration
- Verify agent heartbeat in the Astro UI
3. Configure secrets backend
Configure a secrets backend so agents can access Airflow connections and variables:- AWS Secrets Manager
- Azure Key Vault
- Google Cloud Secret Manager
- HashiCorp Vault
4. Configure XCom backend
Configure object storage for passing data between tasks:- AWS S3
- Azure Blob Storage
- GCP Cloud Storage
5. Configure Dag sources
Define how agents access your Dag code:- GitDagBundle (recommended): Dags in a Git repository with automatic versioning
- LocalDagBundle: Dags in container images or persistent volumes
6. Enable Sentinel
Enable Sentinel to monitor agent health and report status to the orchestration plane. Sentinel detects Pod and component issues and monitors essential integrations such as XCom and secrets backends. See Sentinel for Remote Execution Agents.7. Optionally configure logging
Set up task log export to view logs in external platforms or the Airflow UI:- Export logs with a logging sidecar
- Link Airflow UI to external logging platform
- Show logs in Airflow UI from object storage
8. Deploy your project
Deploy your Airflow project to the Remote Execution deployment:- Initialize a Remote Execution project with Astro CLI
- Build and push the server image (orchestration plane)
- Build and push client images (execution plane)
- Update agents to use the new client image
9. Verify agents are running
Confirm agents are healthy and processing tasks:- Check agent heartbeat status in the Astro UI
- View agent Pods in your Kubernetes cluster
- Trigger a test Dag run and verify task execution
- Check task logs to confirm logging configuration
Next steps
After completing setup:- Configure OpenLineage to enable data lineage and Astro Observe features