diff options
author | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2019-04-04 08:08:35 +0000 |
---|---|---|
committer | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2019-04-04 08:34:07 +0000 |
commit | 54700feaf9055b2192612e4c3958c6ac5bbd6a56 (patch) | |
tree | 788f1e23b372c57bc3942e639c7562458c4119a4 /fcaps | |
parent | 0491327f8dcd808402669c3d8f32a5a0f879db45 (diff) |
Fix thread helper bug
the uwsgi disable threads by default. Enable it with additonal option.
The post and get API request might routed to different uwsgi process,
Leverage memcached to sync backlog items between uwsgi process
Change-Id: Iaac6b66061f2c396cd24825ab020f0a937dfb505
Issue-ID: MULTICLOUD-561
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'fcaps')
-rw-r--r-- | fcaps/requirements.txt | 3 | ||||
-rw-r--r-- | fcaps/run.sh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/fcaps/requirements.txt b/fcaps/requirements.txt index 6a81e502..33120c70 100644 --- a/fcaps/requirements.txt +++ b/fcaps/requirements.txt @@ -1,5 +1,6 @@ # rest framework -Django==1.9.6 +# Django==1.9.6 +Django >= 1.11 djangorestframework==3.3.3 # for call rest api diff --git a/fcaps/run.sh b/fcaps/run.sh index bc01c99e..5f9c4ae7 100644 --- a/fcaps/run.sh +++ b/fcaps/run.sh @@ -21,7 +21,7 @@ export PYTHONPATH=lib/share nohup celery -A fcaps worker --concurrency=1 --loglevel=info & #nohup python manage.py runserver 0.0.0.0:9011 2>&1 & -nohup uwsgi --http :9011 --module fcaps.wsgi --master --processes 4 & +nohup uwsgi --http :9011 --module fcaps.wsgi --master --enable-threads --processes 4 & logDir="/var/log/onap/multicloud/openstack/fcaps" if [ ! -x $logDir ]; then |