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 /windriver | |
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 'windriver')
-rw-r--r-- | windriver/run.sh | 4 | ||||
-rw-r--r-- | windriver/titanium_cloud/urls.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/windriver/run.sh b/windriver/run.sh index 6b48b889..74aff7fa 100644 --- a/windriver/run.sh +++ b/windriver/run.sh @@ -19,10 +19,10 @@ export PYTHONPATH=lib/share #nohup python manage.py runserver 0.0.0.0:9005 2>&1 & if [ ${SSL_ENABLED} = "true" ]; then - nohup uwsgi --https :9005,titanium_cloud/pub/ssl/cert/cert.crt,titanium_cloud/pub/ssl/cert/cert.key,HIGH --module titanium_cloud.wsgi --master --processes 4 & + nohup uwsgi --https :9005,titanium_cloud/pub/ssl/cert/cert.crt,titanium_cloud/pub/ssl/cert/cert.key,HIGH --module titanium_cloud.wsgi --master --enable-threads --processes 4 & else - nohup uwsgi --http :9005 --module titanium_cloud.wsgi --master --processes 4 & + nohup uwsgi --http :9005 --module titanium_cloud.wsgi --master --enable-threads --processes 4 & fi logDir="/var/log/onap/multicloud/openstack/windriver" diff --git a/windriver/titanium_cloud/urls.py b/windriver/titanium_cloud/urls.py index 8b73662a..4d118dc2 100644 --- a/windriver/titanium_cloud/urls.py +++ b/windriver/titanium_cloud/urls.py @@ -17,7 +17,7 @@ from django.conf.urls import include, url from starlingx_base.registration import registration from newton_base.openoapi import tenants from newton_base.resource import capacity -from newton_base.resource import infra_workload +from starlingx_base.resource import infra_workload urlpatterns = [ url(r'^', include('titanium_cloud.swagger.urls')), |