Skip to content

Different Parallelism for different workers #40195

Answered by potiuk
ErandM50 asked this question in Q&A
Discussion options

You must be logged in to vote
  • When we have a cluster with multiple workers and CeleryExecutor, is it possible to set different parallelism for each of the workers? For instance, if in Worker A I set worker parallelism (AIRFLOW__CELERY__WORKER_CONCURRENCY) to 32 in the cfg file and in Worker B I set to 64, would that work?

Yes. See https://airflow.apache.org/docs/apache-airflow-providers-celery/stable/configurations-ref.html#worker-concurrency

  • In the case of LocalExecutor (say we run scheduler on 2 workers), how can this be done? Do I set different parallelism (AIRFLOW__CORE__PARALLELISM) on each, will that work?

Not sure. But it's easy - to check. Just run them and see.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ErandM50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants