mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #5935] Unable to configure a db connection pool #29706
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nowheresly on GitHub (Oct 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5935
Bug Report
Installation Method
I want to use the app with postgresql and a connection pool. Following the documentation, it is stated to use the peewee connection url syntax described here
The peewee documentation states to use the following scheme
postgres+poolto leverage a connection pool.Yet, when we use this scheme, we get the following traceback on startup:
Looking at the traceback, we see that the app is using SqlAlchemy in addition to peewee, but is reusing the same connection url for both frameworks. Yet the url conventions used by SQLAlchemy does not follow the conventions used by peewee. See here for SQLAlchemy
Environment
Expected Behavior:
It should be possible to use a connection pool as stated in the official documentation
Actual Behavior:
Any attempt to configure a connection pool fail
Reproduction Details
Steps to Reproduce:
Here is a simple docker-compose file that we can use to reproduce the issue:
@nowheresly commented on GitHub (Oct 6, 2024):
Ok after reading this:
https://github.com/open-webui/open-webui/pull/3327
I understand that peewee is no more used and that the documentation is now obsolete.
I guess there's no way right now to configure a connection pool with a specific size
@nowheresly commented on GitHub (Oct 6, 2024):
I made a pull request to enable pool configuration