Setting Up Airflow Pools for Concurrent Tasks
By default, Cloudera Workflow Orchestrator supports up to 256 parallel tasks. However, actual task concurrency depends on your cluster's available CPU and memory. To prevent resource exhaustion and service disruption, configure Airflow Pools in the UI to align maximum execution limits with your cluster's capacity.
Resource Requirements:
- Kerberos sidecar resource allocations for Cloudera Base Cluster Connections:
- Requests: 100m CPU and 256 MB of RAM
- Limits: 100m CPU and 256 MB of RAM
- Default worker resource allocations:
- Requests: 100m CPU and 1 GB of RAM
- Limits: Unrestricted CPU and a strict limit of 1 GB of RAM
For configuring worker resources, see Configuring worker pod resources in a DAG file.
Calculating the recommended pool size:
Because each worker requires 1 GB of RAM, you can determine your optimal Cloudera Workflow Orchestrator Pool size.
Formula:
Recommended number of slots based on RAM usage = (Total worker nodes RAM - (number of workers * 3 GB node infra services)) ÷ worker RAM usage
Recommended number of slots based on CPU usage = Total worker nodes CPU - (number of workers * 1.2 CPU node infra services)) ÷ worker CPU usage
Recommended Pool Size = Minimum of the above two values
For more information about pools, see Airflow Pools.
Perform the following steps to configure the parallel worker limit using Cloudera Workflow Orchestrator Pools:
