We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pypy
1 parent 37dd817 commit 45321c2Copy full SHA for 45321c2
frameworks/Python/blacksheep/app-socketify.py
@@ -14,7 +14,7 @@
14
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
15
CORE_COUNT = multiprocessing.cpu_count()
16
17
-MAX_POOL_SIZE = CORE_COUNT * 2
+MAX_POOL_SIZE = min(CORE_COUNT * 2, MAX_DB_CONNECTIONS // CORE_COUNT, 32)
18
MIN_POOL_SIZE = max(1, MAX_POOL_SIZE // 2)
19
db_pool = None
20
0 commit comments