All Products
Search
Document Center

Data Management:Set up and manage Airflow environments

Last Updated:Mar 28, 2026

Set up Apache Airflow in DMS to orchestrate data workflows. This guide walks you through creating an Airflow instance, connecting a Git account, linking a code repository, deploying DAG code, and viewing execution results.

Billing

Fees are based on Workflow Specifications (the number of CUs consumed). The unit price is shown on the Configure Resources page.

Prerequisites

Before you begin, ensure that you have:

  • Completed the instance resource preparation described in Preparations. The Airflow instance depends on the VPC, vSwitch, security group, and OSS bucket configured during that step

  • An Object Storage Service (OSS) bucket in the same region as your workspace, with a storage path created for Airflow data

  • A Git repository (GitHub, Apsara Devops Codeup, or a private GitLab instance) that holds your DAG code

Step 1: Create an Airflow instance

  1. Log on to the DMS console V5.0.

  2. Go to the Workspace page. In the upper-left corner, click the 2023-01-28_15-57-17.png icon, then choose All Features > Data+AI > Workspace.

    If you are not using the simplified console, choose Data+AI > Workspace from the top menu bar.

    screenshot_2025-08-28_10-26-34

  3. Click the name of the target workspace to open it, or create a new workspace.

  4. In the left navigation pane, choose image > Airflow Instance, then click Create Instance.

  5. Configure the instance. The following table describes the key parameters.

    ParameterDescription
    Workflow SpecificationSelect a specification based on the scale and complexity of your workflows. Start with the smallest size that meets your current needs — you can change this later. For capacity comparisons, see Airflow specifications.
    Worker Node ExtensionAirflow automatically adjusts the number of worker nodes based on task load. The node count scales between 1 and 10.
    VPC IDNo change needed. Defaults to the same VPC as the workspace.
    vSwitchSelect the target vSwitch.
    Security GroupSelect the security group to control workflow network access.
    OSS BucketSelect an OSS bucket in the same region as the workspace.
    OSS PathEnter the storage path you created during the preparations.
  6. Click Submit. The instance is ready when its status changes to Running.

Step 2: Add a linked account

A linked account connects DMS to your Git service provider. Linked accounts are personal — other users in the same workspace cannot see the resources associated with your account.

  1. In the upper-right corner of the workspace, click your profile picture, then click the image icon to create a linked account.

    image

  2. In the New Service Provider Account dialog box, select an account Type. DMS supports three account types: GitHub, Apsara Devops Codeup, and Private GitLab.

    image

  3. Select a Creation Method and enter the required credentials.

    • Username and password: Enter your Username and Password.

    • User token: Enter an Access token generated by your Git provider.

  4. Click OK.

Step 3: Create a code repository

  1. In the left navigation pane of the workspace, click the image icon to open the EXPLORER panel.

  2. In the CODE (Code Repository) area, click the image icon and select Add existing git repository.

    screenshot_2025-08-27_17-21-03

  3. Enter a Project Name, select the Git Provider and Git Repository URL, then click OK. If you use Alibaba Cloud services, set Git Provider to CodeUp. DMS then selects a CodeUp linked account by default. After the repository is added, its name appears in the repository list.

    image

Step 4: Develop and deploy code

  1. To the right of the repository name, click the branch name (defaults to master). From here you can switch branches, create new branches, edit code, and save your changes.

    Saving is equivalent to running git push.
  2. Review the environment and parameter configurations. Hover over the repository name and click the image icon to open the environment settings.

  3. Deploy the code. Hover over the repository name, click the image button, then click OK in the confirmation dialog.

    image

Step 5: View published tasks

  1. In the left navigation pane, click the image icon.

  2. Click the Airflow instance under the target repository to see the published tasks.

    image

  3. Click a Directed Acyclic Graph (DAG) name to view its execution results.

    image

Airflow specifications

Both PostgreSQL and Redis run as high-availability (HA) instances across all specification tiers.

Start with the smallest specification that meets your current DAG count and parallelism needs. You can change the specification at any time as your workloads grow.

Both PostgreSQL and Redis are high-availability (HA) instances.
Workflow specificationWeb serverWorkerSchedulerPostgreSQLRedisWeb server replicasWorker replicasScheduler replicasRecommended DAGsWorker parallelism
Small1 vCPU, 4 GB RAM1 vCPU, 4 GB RAM1 vCPU, 4 GB RAM2 vCPU, 4 GB RAM1 GB212Up to 505 per worker
Center1 vCPU, 4 GB RAM2 vCPU, 8 GB RAM2 vCPU, 8 GB RAM2 vCPU, 8 GB RAM2 GBUp to 25010 per worker
Large2 vCPU, 8 GB RAM4 vCPU, 16 GB RAM4 vCPU, 16 GB RAM2 vCPU, 8 GB RAM4 GBUp to 10020 per worker
Extra Large4 vCPU, 16 GB RAM8 vCPU, 32 GB RAM8 vCPU, 32 GB RAM4 vCPU, 32 GB RAM8 GBUp to 2,00040 per worker
2XL8 vCPU, 32 GB RAM16 vCPU, 64 GB RAM16 vCPU, 64 GB RAM8 vCPU, 64 GB RAM16 GBUp to 4,00080 per worker