From 680128e5f7f9c16bb0d8f1d09c1ebc6beee50bb5 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Sun, 8 Apr 2018 16:06:33 -0400 Subject: [PATCH] Standalone server: use processes instead of threads This improves the reliability and performance of the app, it means multiple requests can be processes simultaneously whereas with a single process, the server would stay blocked until it finished responding to the first request. Change-Id: I92ef93a4b30b93036c5a70735962c97229f78840 --- ara/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ara/manage.py b/ara/manage.py index b8f8c70d..f466c7d3 100755 --- a/ara/manage.py +++ b/ara/manage.py @@ -37,7 +37,8 @@ manager.add_command( "runserver", commands.Server(host=app.config['ARA_HOST'], port=app.config['ARA_PORT'], - threaded=True) + processes=8, + threaded=False) )