Use preforked pool for celery and remove gevent from reqs
This commit is contained in:
parent
b894c1d855
commit
1e199b6acd
@ -15,7 +15,7 @@
|
|||||||
- shell: celery multi stopwait 2 -A solar.orchestration.runner
|
- shell: celery multi stopwait 2 -A solar.orchestration.runner
|
||||||
chdir={{ celery_dir }}
|
chdir={{ celery_dir }}
|
||||||
tags: [stop]
|
tags: [stop]
|
||||||
- shell: celery multi start 2 -A solar.orchestration.runner -P gevent -c:2 1000 -c:1 1 -Q:1 scheduler,system_log -Q:2 celery,{{ hostname.stdout }}
|
- shell: celery multi start 2 -A solar.orchestration.runner -P:2 prefork -c:1 1 -c:2 3 -Q:1 scheduler,system_log -Q:2 celery,{{ hostname.stdout }}
|
||||||
chdir={{ celery_dir }}
|
chdir={{ celery_dir }}
|
||||||
tags: [master]
|
tags: [master]
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ solar-celery:
|
|||||||
- /vagrant/resources:/vagrant/resources
|
- /vagrant/resources:/vagrant/resources
|
||||||
- /vagrant/library:/vagrant/library
|
- /vagrant/library:/vagrant/library
|
||||||
- ~/.ssh/known_hosts:/root/.ssh/known_hosts
|
- ~/.ssh/known_hosts:/root/.ssh/known_hosts
|
||||||
|
- ./bootstrap/playbooks/celery.yaml:/celery.yaml
|
||||||
environment:
|
environment:
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
- REDIS_PORT=6379
|
- REDIS_PORT=6379
|
||||||
|
@ -21,7 +21,6 @@ pbr
|
|||||||
pydot
|
pydot
|
||||||
bunch
|
bunch
|
||||||
wrapt
|
wrapt
|
||||||
gevent
|
|
||||||
# if you want to use riak backend then
|
# if you want to use riak backend then
|
||||||
riak
|
riak
|
||||||
# if you want to use sql backend then
|
# if you want to use sql backend then
|
||||||
|
Loading…
Reference in New Issue
Block a user