fix: increase sync connection pool maxconn 5->20 to prevent pool exhaustion
This commit is contained in:
parent
91ed44ad9f
commit
3172300fd0
@ -29,7 +29,7 @@ def get_sync_pool() -> psycopg2.pool.ThreadedConnectionPool:
|
||||
global _sync_pool
|
||||
if _sync_pool is None:
|
||||
_sync_pool = psycopg2.pool.ThreadedConnectionPool(
|
||||
minconn=1, maxconn=5,
|
||||
minconn=2, maxconn=20,
|
||||
host=PG_HOST, port=PG_PORT,
|
||||
dbname=PG_DB, user=PG_USER, password=PG_PASS,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user