Skip to content

Commit 8090190

Browse files
authored
try fix
1 parent e7598ba commit 8090190

File tree

1 file changed

+1
-1
lines changed
  • frameworks/Python/blacksheep

1 file changed

+1
-1
lines changed

frameworks/Python/blacksheep/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
READ_ROW_SQL = 'SELECT "id", "randomnumber" FROM "world" WHERE id = $1'
1717
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=$1 WHERE id=$2'
1818
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
19-
MAX_CONNECTIONS = 1900
19+
MAX_CONNECTIONS = 1800 if os.getenv('GUNICORN') else 1000
2020
CORE_COUNT = multiprocessing.cpu_count()
2121
PROCESSES = CORE_COUNT if os.getenv('GUNICORN') else min(8, CORE_COUNT // 4) if CORE_COUNT > 4 else CORE_COUNT
2222
MAX_POOL_SIZE = max(1,int(os.getenv('MAX_POOL_SIZE', MAX_CONNECTIONS // PROCESSES)))

0 commit comments

Comments
 (0)