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 f02224f commit 9e334c5Copy full SHA for 9e334c5
frameworks/Python/blacksheep/app-socketify.py
@@ -13,8 +13,9 @@
13
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=%s WHERE id=%s'
14
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
15
CORE_COUNT = multiprocessing.cpu_count()
16
+MAX_DB_CONNECTIONS = 2000
17
-MAX_POOL_SIZE = CORE_COUNT * 2
18
+MAX_POOL_SIZE = min(CORE_COUNT * 2, MAX_DB_CONNECTIONS // CORE_COUNT, 32)
19
MIN_POOL_SIZE = max(1, MAX_POOL_SIZE // 2)
20
db_pool = None
21
0 commit comments