Server: Default to 1 worker - better for file downloads
- Multiple workers cause contention and slow down large file downloads - Single worker with async handles concurrent requests fine
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ def parse_args():
|
||||
# Additional options
|
||||
parser.add_argument("--host", default="0.0.0.0", help="Host to bind to (default: 0.0.0.0)")
|
||||
parser.add_argument("--port", type=int, default=1582, help="Port to bind to (default: 1582)")
|
||||
parser.add_argument("--workers", type=int, default=4, help="Number of workers for production mode")
|
||||
parser.add_argument("--workers", type=int, default=1, help="Number of workers for production mode (default: 1, more causes file download slowdown)")
|
||||
parser.add_argument("--reload", action="store_true", help="Enable auto-reload (development)")
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
Reference in New Issue
Block a user