Skip to content

Dag with high number of branches is slower than dags triggered in a cmd loop #33665

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

You must be logged in to vote

You are probably not using PBBouncer. See the note in the docs. https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#setting-up-a-postgresql-database

Airflow is known to open big number of DB connections and Postgres is known to open a separate process for each connection. PGBouncer is known to provide a fantastic way to join the two - seemingly conflicting requirements. Especially when you attempt to do any kind of artifficial benchmarking like that.

I think it would be good to repeat your tests with well configured PGBouncer.

BTW. I Am note sure what you are referring to as "with branches" - the dags of your shows many task groups, but I am not sure what "bra…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Alaeddine22
Comment options

@Alaeddine22
Comment options

@potiuk
Comment options

potiuk Aug 25, 2023
Collaborator

@Alaeddine22
Comment options

Answer selected by Alaeddine22
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