limit connection pool size

This commit is contained in:
Christian Schwarz
2023-02-09 22:18:14 +00:00
parent c129079b69
commit f170aad625

View File

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