diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-07-04 17:45:51 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-07-04 17:45:51 +0800 |
commit | 6455cf7852129b9dfcc0a7679df254a4e44533c6 (patch) | |
tree | 31095482609400110cd4fb8e169b97fc6ed75670 /ocata/run.sh | |
parent | 0f7bd819dadec74b284d029d24705c37ab291e20 (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-x | ocata/run.sh | 5 |
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 |