To enable parallel processing of framework services
Change-Id: I3142c2ea742918027e7f397b6fe9aece329788a5
Issue-ID: MULTICLOUD-187
Signed-off-by: Yun Huang <yun.huang@windriver.com>
 oslo.config>=4.11.0
 oslo.service>=1.25.0
 eventlet>=0.20.0
+
+# uwsgi for parallel processing
+uwsgi
+
 
 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
 
 # distributed under the License is distributed on an "AS IS" BASIS,
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
-ps auxww | grep 'manage.py runserver 0.0.0.0:9001' | awk '{print $2}' | xargs kill -9
+# ps auxww | grep 'manage.py runserver 0.0.0.0:9001' | awk '{print $2}' | xargs kill -9
+ps auxww |grep 'uwsgi --http :9001 --module multivimbroker.wsgi --master' |awk '{print $2}' |xargs kill -9