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
This commit is contained in:
David Moreau Simard 2018-04-08 16:06:33 -04:00
parent 259d3bed08
commit 680128e5f7
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
1 changed files with 2 additions and 1 deletions

View File

@ -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)
)