aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2018-02-11 11:26:01 +0100
committerzsloan2018-02-11 11:26:01 +0100
commit7f3a493db99998992f86af9a5e333103f255be6d (patch)
tree98e6379de8dcc6adc77bea20d43df1f03b1db34b
parent7009d382c4515340cc7080192c58cc3fc0c1ced2 (diff)
downloadgenenetwork2-7f3a493db99998992f86af9a5e333103f255be6d.tar.gz
Using eventlet workers
-rwxr-xr-xbin/genenetwork23
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index d1b8d25f..2f0b841e 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -192,7 +192,8 @@ if [ "$1" = '-gunicorn-prod' ] ; then
cd $GN2_BASE_DIR/wqflask
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=32 --max-requests 1000 --timeout 1200 wsgi"
+ cmd="--bind 0.0.0.0:$SERVER_PORT -k eventlet --workers 20 --keep-alive 1200 --max-requests 1000 --timeout 1200 wsgi"
+ # cmd="--bind 0.0.0.0:$SERVER_PORT --workers 20 --keep-alive 75 --max-requests 1000 --timeout 1200 wsgi"
echo RUNNING gunicorn $cmd
gunicorn $cmd
exit $?