Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to upgrade Airflow's executor from LocalExecutor to CeleryExecutor?

Tags:

celery

airflow

I am currently running several Airflow DAGs using LocalExecutor and it's been working fine. My server has plenty of resources. I am about to add a new DAG for a larger project and I am considering switching from LocalExecutor to CeleryExecutor.

My question is, what are some signs that I should switch to CeleryExecutor? Are there specific performance metrics I should be looking at to know when I need to start scaling out?

like image 477
Desiree Cox Avatar asked Dec 24 '22 03:12

Desiree Cox


1 Answers

The LocalExecutor should be sufficient if you want to run a small number of concurrent tasks such that with your scheduling needs those tasks could run a single server. You should think of moving to CeleryExecutor when you feel that you need to distribute the jobs across multiple servers.

like image 177
Vineet Goel Avatar answered Jan 06 '23 09:01

Vineet Goel