diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-03-16 14:29:47 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-03-16 14:29:47 +0800 |
commit | 25b245b38be0ba1a850407064f6ee84867f15791 (patch) | |
tree | 76555412cb399e342e73ca60a2e6fe7f6da1d02c /newton/run.sh | |
parent | 27097cb92644e84fd7f72d56f1d4f2009f1e8f10 (diff) |
Integrate uwsgi with django
To enable parallel processing of plugin services
Change-Id: I61e9934273a8448ee6a437c9832a45d1f75a7a60
Issue-ID: MULTICLOUD-187
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'newton/run.sh')
-rwxr-xr-x | newton/run.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newton/run.sh b/newton/run.sh index 43de581f..a355cb8d 100755 --- a/newton/run.sh +++ b/newton/run.sh @@ -15,7 +15,8 @@ memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid export PYTHONPATH=lib/share -nohup python manage.py runserver 0.0.0.0:9003 2>&1 & +#nohup python manage.py runserver 0.0.0.0:9003 2>&1 & +nohup uwsgi --http :9003 --module newton.wsgi --master --processes 4 & logDir="/var/log/onap/multicloud/openstack/newton" if [ ! -x $logDir ]; then |