diff options
Diffstat (limited to 'ocata')
-rw-r--r-- | ocata/requirements.txt | 3 | ||||
-rw-r--r-- | ocata/run.sh | 3 | ||||
-rw-r--r-- | ocata/stop.sh | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/ocata/requirements.txt b/ocata/requirements.txt index 76a3c0b1..34ceaecc 100644 --- a/ocata/requirements.txt +++ b/ocata/requirements.txt @@ -11,6 +11,9 @@ keystoneauth1==2.18.0 #python-memcached python-memcached +#uwsgi for parallel processing +uwsgi + # for unit test coverage==4.2 mock==2.0.0 diff --git a/ocata/run.sh b/ocata/run.sh index f1bcfa9a..c0293f67 100644 --- a/ocata/run.sh +++ b/ocata/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:9006 2>&1 & +#nohup python manage.py runserver 0.0.0.0:9006 2>&1 & +nohup uwsgi --http :9006 --module ocata.wsgi --master --processes 4 & logDir="/var/log/onap/multicloud/openstack/ocata" if [ ! -x $logDir ]; then diff --git a/ocata/stop.sh b/ocata/stop.sh index 5a2209fd..1402a97c 100644 --- a/ocata/stop.sh +++ b/ocata/stop.sh @@ -13,5 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -ps auxww | grep 'manage.py runserver 0.0.0.0:9006' | awk '{print $2}' | xargs kill -9 +#ps auxww | grep 'manage.py runserver 0.0.0.0:9006' | awk '{print $2}' | xargs kill -9 +ps auxww |grep 'uwsgi --http :9006 --module ocata.wsgi --master' |awk '{print $2}' |xargs kill -9 ps auxww | grep 'memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid' | awk '{print $2}' | xargs kill -9 |