Configure a Deployment
After you create an Astro Deployment, you can modify its settings to meet the unique requirements of your organization. Using the Cloud UI and Astro CLI, you can:
- Allocate resources for the Airflow scheduler and workers.
- Update a Deployment name and description.
- Add or delete a Deployment alert email.
- Change the Deployment executor.
- Transfer a Deployment to another Workspace in your Organization.
- Delete a Deployment.
For advanced Deployment resource configurations, see Manage Deployment executors and Configure worker queues.
This document focuses on configuring Deployments through the Cloud UI. For steps and best practices for configuring Deployments as code using the Astro CLI, see Manage Deployments as code.
Deployment executor
Astro supports two executors, both of which are available in the Apache Airflow open source project:
- Celery executor
- Kubernetes executor
All Deployments use the Celery executor by default. See Choose an executor to understand the benefits and limitations of each executor. When you've determined the right executor type for your Deployment, complete the steps in the following topic to update your Deployment's executor type.
Update the Deployment executor
- In the Cloud UI, select a Workspace, click Deployments, and then select a Deployment.
- Click the Details tab.
- Click Edit Details.
- Select Celery or Kubernetes in the Executor list. If you're moving from the Celery to the Kubernetes executor, all existing worker queues are deleted. Running tasks stop gracefully and all new tasks start with the selected executor.
- Click Update.
- Optional. Configure worker queues and tasks to optimize resource usage on your Deployment. See Configure an executor.
Scheduler resources
The Airflow scheduler is responsible for monitoring task execution and triggering downstream tasks when the dependencies are met.
Scheduler resources must be set for each Deployment and are managed separately from cluster-level infrastructure. To ensure that your tasks have the CPU and memory required to complete successfully on Astro, you can set:
Scheduler Resources: Determine the total CPU and memory allocated to each scheduler in your Deployment, defined as Astronomer Units (AU). One AU is equivalent to 0.1 CPU and 0.375 GiB of memory. The default scheduler size is 5 AU, or .5 CPU and 1.88 GiB memory. The number of schedulers running in your Deployment is determined by Scheduler Count, but all schedulers are created with the same CPU and memory allocations.
Scheduler Count: Move the slider to select the number of schedulers for the Deployment. Each scheduler is provisioned with the AU you specified in the Scheduler Resources field. For example, if you set scheduler resources to 10 AU and Scheduler Count to 2, your Deployment will run with 2 Airflow schedulers using 10 AU each. For high availability, Astronomer recommends selecting a minimum of two schedulers.
Update scheduler settings
In the Cloud UI, select a Workspace, click Deployments, and then select a Deployment.
Click the Details tab.
Click Edit Details.
Edit the scheduler resource settings. See Scheduler resources.
Click Update.
The Airflow components of your Deployment automatically restart to apply the updated resource allocations. This action is equivalent to deploying code and triggers a rebuild of your Deployment image. If you're using the Celery executor, currently running tasks have 24 hours to complete before their running workers are terminated. See What happens during a code deploy.
Update a Deployment name and description
- In the Cloud UI, select a Workspace, click Deployments, and then select a Deployment.
- Click the Details tab.
- Click Edit Details.
- Update the Deployment name or description.
- Click Update.
Add or delete a Deployment alert email
Alert emails assigned to a Deployment are used by Astronomer support to notify recipients in the case of an issue with the Deployment. This can include a problem with your scheduler or workers. Automated email alerts are coming soon.
- In the Cloud UI, select a Workspace, click Deployments, and then select a Deployment.
- Click the Details tab.
- To add an alert email:
- Click Edit Emails in the Alert Emails area.
- Enter an email address and then click Add.
- To delete an alert email address:
- Click Edit Emails in the Alert Emails area.
- Click Delete next to the email you want to delete.
- Click Yes, Continue.
In addition to alert emails for your Deployments, Astronomer recommends subscribing to the Astro status page. When you subscribe, you'll receive email notifications about system-wide incidents in real time.
Transfer a Deployment to another Workspace
Transferring a Deployment can be helpful when your team needs to change user access to a Deployment. Transferring a Deployment moves all DAGs, task history, connections, API keys, and other Astro configurations. Running tasks are not interrupted and tasks will continue to be scheduled.
To transfer a Deployment from one Workspace to another, the Workspaces must be in the same Organization. Transferred Deployments cannot be transferred to a different cluster from the one in which they were created.
Only the users who are members of the target Workspace can access the Deployment after it is transferred. To transfer a Deployment, you must be a Workspace Admin or Editor in both the original Workspace and the target Workspace.
In the Cloud UI, select a Workspace, click Deployments, and then select a Deployment.
Click the Options menu and select Transfer Deployment.
Select the target Workspace where you want to transfer the Deployment.
Click Transfer Deployment.
Delete a Deployment
When you delete a Deployment, all infrastructure resources assigned to the Deployment are immediately deleted from your data plane. However, the Kubernetes namespace and metadata database for the Deployment are retained for 30 days. Deleted Deployments can't be restored. If you accidentally delete a Deployment, contact Astronomer support.
In the Cloud UI, select a Workspace, click Deployments, and then select a Deployment.
Click the Options menu of the Deployment you want to delete, and select Delete Deployment.
Enter
Delete
and click Yes, Continue.