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 8b6a4cf commit e7598baCopy full SHA for e7598ba
frameworks/Python/blacksheep/app.py
@@ -18,7 +18,7 @@
18
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
19
MAX_CONNECTIONS = 1900
20
CORE_COUNT = multiprocessing.cpu_count()
21
-PROCESSES = CPU_CORES if os.getenv('GUNICORN') else min(8, CORE_COUNT // 4) if CORE_COUNT > 4 else CORE_COUNT
+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)))
23
MIN_POOL_SIZE = max(1,int(os.getenv('MIN_POOL_SIZE', MAX_POOL_SIZE // 2)))
24
0 commit comments