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.
1 parent e7598ba commit 8090190Copy full SHA for 8090190
frameworks/Python/blacksheep/app.py
@@ -16,7 +16,7 @@
16
READ_ROW_SQL = 'SELECT "id", "randomnumber" FROM "world" WHERE id = $1'
17
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=$1 WHERE id=$2'
18
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
19
-MAX_CONNECTIONS = 1900
+MAX_CONNECTIONS = 1800 if os.getenv('GUNICORN') else 1000
20
CORE_COUNT = multiprocessing.cpu_count()
21
PROCESSES = CORE_COUNT if os.getenv('GUNICORN') else min(8, CORE_COUNT // 4) if CORE_COUNT > 4 else CORE_COUNT
22
MAX_POOL_SIZE = max(1,int(os.getenv('MAX_POOL_SIZE', MAX_CONNECTIONS // PROCESSES)))
0 commit comments