diff options
-rw-r--r-- | requirements.txt | 5 | ||||
-rwxr-xr-x | run.sh | 3 | ||||
-rwxr-xr-x | stop.sh | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/requirements.txt b/requirements.txt index e3cded35..a3dec560 100644 --- a/requirements.txt +++ b/requirements.txt @@ -33,4 +33,7 @@ flex>=6.11.1 swagger-spec-validator>=2.1.0 # for onap logging -onappylog>=1.0.6
\ No newline at end of file +onappylog>=1.0.6 + +# uwsgi for parallel processing +uwsgi @@ -18,7 +18,8 @@ if [ ! -x $logDir ]; then mkdir -p $logDir fi -nohup python manage.py runserver 0.0.0.0:8403 > /dev/null & +# nohup python manage.py runserver 0.0.0.0:8403 > /dev/null & +nohup uwsgi --http :8403 -t 120 --module lcm.wsgi --master --processes 4 & while [ ! -f $logDir/runtime_nslcm.log ]; do sleep 1 @@ -12,4 +12,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -ps auxww | grep "manage.py runserver 0.0.0.0:8403" | awk '{print $2}' | xargs kill -9 +# ps auxww | grep "manage.py runserver 0.0.0.0:8403" | awk '{print $2}' | xargs kill -9 +ps auxww |grep 'uwsgi --http :8403 --module lcm.wsgi --master' |awk '{print $2}' |xargs kill -9 |