summaryrefslogtreecommitdiffstats
path: root/ocata/run.sh
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-07-04 17:45:51 +0800
committerYun Huang <yun.huang@windriver.com>2018-07-04 17:45:51 +0800
commit6455cf7852129b9dfcc0a7679df254a4e44533c6 (patch)
tree31095482609400110cd4fb8e169b97fc6ed75670 /ocata/run.sh
parent0f7bd819dadec74b284d029d24705c37ab291e20 (diff)
Enable celery for vesagent workers for ocata
Change-Id: Ibf07426ec3fa8b9c8b866d95a1e49537094cef70 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'ocata/run.sh')
-rwxr-xr-xocata/run.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ocata/run.sh b/ocata/run.sh
index 70af4df9..541eaf10 100755
--- a/ocata/run.sh
+++ b/ocata/run.sh
@@ -15,4 +15,9 @@
memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid
export PYTHONPATH=lib/share
+
+service rabbitmq-server restart
+# make sure only 1 worker due to missing the synchronization between workers now
+nohup celery -A ocata worker --concurrency=1 --loglevel=debug &
+
uwsgi --http :9006 --module ocata.wsgi --master --processes 4