Replies: 1 comment 2 replies
-
I suppose by 'external pooling mechanism' you mean https://www.pgbouncer.org/ or similar? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I ran into an issue with dagster_postgres library #19222 . When I use postgres as a storage for my dagster architecture, I sometimes get "too many clients" error, especially when multiple jobs are running in parallel and there are concurrency slots set up for some ops.
I was wondering why there is no pooling mechanism when connecting to postgres instance.
For example here:
dagster/python_modules/libraries/dagster-postgres/dagster_postgres/event_log/event_log.py
Line 91 in d3720b4
Is there any reason behind this logic? Because for dagster instance with multiple shcedules and jobs running, this can cause failures very quickly and there is simply no other way how to avoid it than setting external pooling mechanism or extending the connection limit of the postgres instance.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions