From 278e0c4549a4569c28e1e201a3fb5fb947d97885 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 29 Jul 2026 17:16:24 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20GLOBAL=5FCONN=5FLIMIT=20400=E2=86=92100?= =?UTF-8?q?0,=20maxconn=20100=E2=86=92200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sqlor/dbpools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index 41a1108..c9c0508 100644 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -26,7 +26,7 @@ from .mysqlor import MySqlor from .aiopostgresqlor import AioPostgresqlor # Global semaphore to limit total connections across all pools -_GLOBAL_CONN_LIMIT = 400 # Leave headroom below MariaDB max_connections=500 +_GLOBAL_CONN_LIMIT = 1000 # Leave headroom below MariaDB max_connections=500 _global_conn_sema = None def _get_global_sema(): @@ -56,7 +56,7 @@ class SqlorPool: # Only check alive if connection has been idle longer than this CHECK_ALIVE_THRESHOLD = 30 # 30 seconds - def __init__(self, create_func, maxconn=100): + def __init__(self, create_func, maxconn=200): self.sema = asyncio.Semaphore(maxconn) self.create_func = create_func self.sqlors = []