|
@@ -10,7 +10,6 @@ if __name__ == '__main__':
|
|
workers = multiprocessing.cpu_count()
|
|
workers = multiprocessing.cpu_count()
|
|
if threading_mode == "workers":
|
|
if threading_mode == "workers":
|
|
workers = round(workers / 2)
|
|
workers = round(workers / 2)
|
|
- threads = 1
|
|
|
|
|
|
|
|
Granian(
|
|
Granian(
|
|
f"app_{interface}:main",
|
|
f"app_{interface}:main",
|
|
@@ -18,8 +17,8 @@ if __name__ == '__main__':
|
|
port=8080,
|
|
port=8080,
|
|
workers=workers,
|
|
workers=workers,
|
|
threading_mode=threading_mode,
|
|
threading_mode=threading_mode,
|
|
- threads=threads,
|
|
|
|
- backlog=2048,
|
|
|
|
|
|
+ blocking_threads=1,
|
|
|
|
+ backlog=16384,
|
|
interface=interface,
|
|
interface=interface,
|
|
http="1",
|
|
http="1",
|
|
websockets=False
|
|
websockets=False
|