fix: increase sync connection pool maxconn 5->20 to prevent pool exhaustion

This commit is contained in:
root 2026-03-03 12:36:58 +00:00
parent 91ed44ad9f
commit 3172300fd0

View File

@ -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,
)