diff options
| author | Frederick Muriuki Muriithi | 2024-07-23 14:44:30 -0500 |
|---|---|---|
| committer | Alexander_Kabui | 2024-08-28 15:02:46 +0300 |
| commit | 6a7ad315a0a7aca5c63cb1d1021efacf2e85a907 (patch) | |
| tree | a584688c86b3102d542c23a46844ccb71390842c /bin | |
| parent | 8a782ecdac0ca9b56c02a81f8978a05aa9c48be3 (diff) | |
| download | genenetwork2-6a7ad315a0a7aca5c63cb1d1021efacf2e85a907.tar.gz | |
Run GN2 multithreaded by default
The service runs multithreaded on production, thus running it multithreaded during dev should help with exposing otherwise difficult/impossible to debug issues if running single-threaded.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/genenetwork2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index fc14eedc..f5d6b055 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -186,7 +186,7 @@ fi if [ "$1" = '-gunicorn-dev' ] ; then echo PYTHONPATH="${PYTHONPATH}" if [ -z "${SERVER_PORT}" ]; then echo "ERROR: Provide a SERVER_PORT" ; exit 1 ; fi - cmd="--bind 0.0.0.0:$SERVER_PORT --workers=1 --timeout 180 --reload ${GUNICORN_EXTRA_ARGS} gn2.run_gunicorn:app" + cmd="--bind 0.0.0.0:$SERVER_PORT --workers=3 --timeout 180 --reload ${GUNICORN_EXTRA_ARGS} gn2.run_gunicorn:app" echo "RUNNING gunicorn ${cmd}" gunicorn $cmd exit $? |
