Pick the executor that matches your task profile, not the one in the tutorial
Customers land on an executor that matches their task profile, with queue wait times or pod startup overhead measurably reduced depending on the direction of the move. The staged migration means no cu…
Overview
Celery and Kubernetes executors have opposite cost profiles. Celery keeps warm workers, which suits many short tasks and wastes capacity on few long ones; Kubernetes creates a pod per task, which suits heterogeneous long-running tasks and adds meaningful startup overhead to short ones. AceMQ measures the task profile and designs accordingly.
Challenge
Deployments usually inherit an executor choice rather than making one. Celery deployments running thousands of short tasks queue behind a fixed worker pool; Kubernetes executor deployments running the same tasks pay pod startup on every one. Task dependency resolution, log persistence, and secret handling all differ between the two, so a migration touches more than the executor setting. Doing it without a validated rollback risks the entire orchestration layer.
Environment
Apache Airflow 2.x on Kubernetes, with mixed short-running orchestration tasks and long-running compute tasks submitted to Spark, Databricks, or dbt.
Approach
AceMQ profiles task duration, concurrency, and resource footprint distribution across the deployment to determine which executor fits, and whether a split — Kubernetes executor with a Celery queue for high-frequency short tasks — is justified. The migration is then staged by DAG group with both executors available, and log, secret, and dependency handling is validated before cutover.
Solution
- 1Task duration, concurrency, and resource footprint profiling to determine executor fit against measured behavior
- 2Executor recommendation including hybrid designs where short and long task classes justify separate queues
- 3Pod template, resource request, and node selector design for Kubernetes executor tasks with per-task-class overrides
- 4Worker autoscaling and queue routing design for Celery deployments, sized against measured concurrency
- 5Remote log persistence, secrets backend, and image build pipeline aligned to the target executor
- 6Staged DAG-group migration with rollback, running both executors in parallel until each group is validated
Outcome
Customers land on an executor that matches their task profile, with queue wait times or pod startup overhead measurably reduced depending on the direction of the move. The staged migration means no cutover event puts the whole orchestration layer at risk.
Technologies
Related Use Cases
Apache Airflow Platform Assessment
Reviewing an Airflow deployment for reliability, DAG authoring practice, secrets handling, and upgrade readiness before it becomes unmaintainable.
Apache Airflow Zombie Task and Scheduling Stall Remediation
Restoring scheduling on Airflow deployments where zombie tasks hold executor slots and pools until nothing new gets queued.
Need Apache Airflow Architecture Guidance?
AceMQ's senior Apache Airflow engineers have handled this exact type of engagement before. Whether you need architectural guidance, hands-on remediation, or an ongoing managed partnership, we're ready to help.