mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-14 19:50:38 +00:00
limit connection pool size
This commit is contained in:
@@ -259,7 +259,7 @@ async def pageserver_loop(ps_config, db: asyncpg.Pool, client: Client):
|
||||
|
||||
|
||||
async def pageserver_process_async(ps_config, dsn):
|
||||
async with asyncpg.create_pool(dsn) as db:
|
||||
async with asyncpg.create_pool(dsn, min_size=2, max_size=5) as db:
|
||||
async with Client(ps_config["endpoint"]) as client:
|
||||
return await pageserver_loop(ps_config, db, client)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user