You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "tgrandje (via GitHub)" <gi...@apache.org> on 2025/03/25 08:15:46 UTC

[D] Deploy airflow with postgresql and pooling [airflow]

GitHub user tgrandje created a discussion: Deploy airflow with postgresql and pooling

Airflow's documentation states that setting a postgresql database in production may require PgBouncer because of an important number of connections:
* see here in [Setting up a PostgreSQL Database](https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#setting-up-a-postgresql-database)
* see also here in [production guide](https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#pgbouncer) for helm-chart.

On the other hand, the configuration documentation states that airflow uses (by default config) a SqlAlchemy pool :
* [sql-alchemy-pool-enabled](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#sql-alchemy-pool-enabled) : default is True
* [sql_alchemy_pool_size](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#sql-alchemy-pool-size) : default is 5

That seems conflicting to me. Is any of this outdated? (I'll open an issue on this if confirmed.)

GitHub link: https://github.com/apache/airflow/discussions/48231

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Deploy airflow with postgresql and pooling [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Deploy airflow with postgresql and pooling

Yes. That discussion explains the difference. Not every database pool is the same - there are different concepts for different pools, local and remote. 

GitHub link: https://github.com/apache/airflow/discussions/48231#discussioncomment-16032166

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Deploy airflow with postgresql and pooling [airflow]

Posted by "dschneider-wxs (via GitHub)" <gi...@apache.org>.
GitHub user dschneider-wxs added a comment to the discussion: Deploy airflow with postgresql and pooling

related https://github.com/apache/airflow/discussions/56890

GitHub link: https://github.com/apache/airflow/discussions/48231#discussioncomment-16028017

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Deploy airflow with postgresql and pooling [airflow]

Posted by "tgrandje (via GitHub)" <gi...@apache.org>.
GitHub user tgrandje closed a discussion: Deploy airflow with postgresql and pooling

Airflow's documentation states that setting a postgresql database in production may require PgBouncer because of an important number of connections:
* see here in [Setting up a PostgreSQL Database](https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#setting-up-a-postgresql-database)
* see also here in [production guide](https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#pgbouncer) for helm-chart.

On the other hand, the configuration documentation states that airflow uses (by default config) a SqlAlchemy pool :
* [sql-alchemy-pool-enabled](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#sql-alchemy-pool-enabled) : default is True
* [sql_alchemy_pool_size](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#sql-alchemy-pool-size) : default is 5

That seems conflicting to me. Is any of this outdated? (I'll open an issue on this if confirmed.)

GitHub link: https://github.com/apache/airflow/discussions/48231

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org