Change pool to gevent from preforked for worker which performs tasks

This commit is contained in:
Dmitry Shulyak 2015-12-01 15:46:27 +02:00
parent 0e4abe55bd
commit 8f2d865113
2 changed files with 3 additions and 11 deletions

View File

@ -2,18 +2,13 @@ FROM ubuntu:14.04
WORKDIR /
RUN apt-get update
RUN apt-get install -y python python-dev python-distribute python-pip openssh-client rsync
RUN pip install ansible
ADD bootstrap/playbooks/celery.yaml /celery.yaml
ADD resources /resources
ADD templates /templates
ADD run.sh /run.sh
RUN apt-get update
RUN apt-get install -y python python-dev python-distribute python-pip \
libyaml-dev vim libffi-dev libssl-dev git
RUN apt-get upgrade && apt-get update
RUN apt-get install -y python python-dev python-distribute python-pip openssh-client rsync libyaml-dev vim libffi-dev libssl-dev git
RUN pip install ansible
RUN pip install git+https://github.com/Mirantis/solar.git

View File

@ -15,9 +15,6 @@
- shell: celery multi stopwait 2 -A solar.orchestration.runner
chdir={{ celery_dir }}
tags: [stop]
- 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 }}
- shell: celery multi start 2 -A solar.orchestration.runner -P:2 gevent -c:1 1 -Q:1 scheduler,system_log -Q:2 celery,{{ hostname.stdout }}
chdir={{ celery_dir }}
tags: [master]
- shell: celery multi start 1 -A solar.orchestration.runner -Q:1 {{ hostname.stdout }}
chdir={{ celery_dir }}
tags: [slave]