From 54700feaf9055b2192612e4c3958c6ac5bbd6a56 Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Thu, 4 Apr 2019 08:08:35 +0000 Subject: Fix thread helper bug the uwsgi disable threads by default. Enable it with additonal option. The post and get API request might routed to different uwsgi process, Leverage memcached to sync backlog items between uwsgi process Change-Id: Iaac6b66061f2c396cd24825ab020f0a937dfb505 Issue-ID: MULTICLOUD-561 Signed-off-by: Xiaohua Zhang --- lenovo/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lenovo') diff --git a/lenovo/run.sh b/lenovo/run.sh index 45d109f7..0fa331f7 100755 --- a/lenovo/run.sh +++ b/lenovo/run.sh @@ -19,9 +19,9 @@ export PYTHONPATH=lib/share #nohup python manage.py runserver 0.0.0.0:9010 2>&1 & #nohup uwsgi --http :9010 --module thinkcloud.wsgi --master --processes 4 & if [ ${SSL_ENABLED} = "true" ]; then - nohup uwsgi --https :9010,thinkcloud/pub/ssl/cert/cert.crt,thinkcloud/pub/ssl/cert/cert.key,HIGH -t 120 --module thinkcloud.wsgi --master --processes 4 & + nohup uwsgi --https :9010,thinkcloud/pub/ssl/cert/cert.crt,thinkcloud/pub/ssl/cert/cert.key,HIGH -t 120 --module thinkcloud.wsgi --master --enable-threads --processes 4 & else - nohup uwsgi --http :9010 -t 120 --module thinkcloud.wsgi --master --processes 4 & + nohup uwsgi --http :9010 -t 120 --module thinkcloud.wsgi --master --enable-threads --processes 4 & fi logDir="/var/log/onap/multicloud/openstack/lenovo" -- cgit 1.2.3-korg