Integrate uwsgi with django
To enable parallel processing of framework services
Change-Id: I3142c2ea742918027e7f397b6fe9aece329788a5
Issue-ID: MULTICLOUD-187
Signed-off-by: Yun Huang <yun.huang@windriver.com>
diff --git a/multivimbroker/run.sh b/multivimbroker/run.sh
index e73496f..8270deb 100755
--- a/multivimbroker/run.sh
+++ b/multivimbroker/run.sh
@@ -30,7 +30,8 @@
then
python multivimbroker/scripts/api.py
else
- nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
+ # nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
+ nohup uwsgi --http :9001 --module multivimbroker.wsgi --master --processes 4 &
while [ ! -f $logDir/multivimbroker.log ]; do
sleep 1