summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newton/requirements.txt3
-rwxr-xr-xnewton/run.sh3
-rwxr-xr-xnewton/stop.sh3
-rw-r--r--ocata/requirements.txt3
-rw-r--r--ocata/run.sh3
-rw-r--r--ocata/stop.sh3
-rw-r--r--windriver/requirements.txt3
-rw-r--r--windriver/run.sh3
-rw-r--r--windriver/stop.sh3
9 files changed, 21 insertions, 6 deletions
diff --git a/newton/requirements.txt b/newton/requirements.txt
index df84bef5..5eb0f365 100644
--- a/newton/requirements.txt
+++ b/newton/requirements.txt
@@ -13,6 +13,9 @@ keystoneauth1==2.19.0
#python-memcached
python-memcached
+#uwsgi for parallel processing
+uwsgi
+
# for unit test
coverage==4.2
mock==2.0.0
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
diff --git a/newton/stop.sh b/newton/stop.sh
index f743bf97..506d9965 100755
--- a/newton/stop.sh
+++ b/newton/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:9003' | awk '{print $2}' | xargs kill -9
+#ps auxww | grep 'manage.py runserver 0.0.0.0:9003' | awk '{print $2}' | xargs kill -9
+ps auxww |grep 'uwsgi --http :9003 --module newton.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
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
diff --git a/windriver/requirements.txt b/windriver/requirements.txt
index 25a691a6..c3576f5d 100644
--- a/windriver/requirements.txt
+++ b/windriver/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/windriver/run.sh b/windriver/run.sh
index 05413d26..4cc23a60 100644
--- a/windriver/run.sh
+++ b/windriver/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:9005 2>&1 &
+#nohup python manage.py runserver 0.0.0.0:9005 2>&1 &
+nohup uwsgi --http :9005 --module titanium_cloud.wsgi --master --processes 4 &
logDir="/var/log/onap/multicloud/openstack/windriver"
if [ ! -x $logDir ]; then
diff --git a/windriver/stop.sh b/windriver/stop.sh
index a84fb3b5..ab8a72d5 100644
--- a/windriver/stop.sh
+++ b/windriver/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:9005' | awk '{print $2}' | xargs kill -9
+#ps auxww | grep 'manage.py runserver 0.0.0.0:9005' | awk '{print $2}' | xargs kill -9
+ps auxww |grep 'uwsgi --http :9005 --module titanium_cloud.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